I created a type in Oracle
CREATE OR REPLACE TYPE myType as object (
id number,rol varchar(16) );
Then I have this function that returns an object of type myType
create or replace FUNCTION myFunction(...) RETURN myType IS
....
END;
In plsql, I can access the attributes of the returned object by simply doing this:
var := myFunction(...);
dbms_output.put_line(var.rol);
But how can I access object attributes from php using OCI8
source
share