|
oci_fetch_objectReturns the next row from a query as an object Description
object oci_fetch_object
( resource
$statement
)
Returns an object containing the next result-set row of a query.
Each attribute of the object corresponds to a column of the row.
This function is typically called in a loop until it returns
For details on the data type mapping performed by the OCI8 extension, see the datatypes supported by the driver Parameters
Return Values
Returns an object. Each attribute of the object corresponds to a
column of the row. If there are no more rows in
the Any LOB columns are returned as LOB descriptors. DATE columns are returned as strings formatted to the current date format. The default format can be changed with Oracle environment variables such as NLS_LANG or by a previously executed ALTER SESSION SET NLS_DATE_FORMAT command. Oracle's default, non-case sensitive column names will have uppercase attribute names. Case-sensitive column names will have attribute names using the exact column case. Use var_dump on the result object to verify the appropriate case for attribute access.
Attribute values will be Examples
Example #1 oci_fetch_object example
<?php
Example #2 oci_fetch_object with case sensitive column names
<?php
Example #3 oci_fetch_object with LOBs
<?php See Also
|