If the oci_execute
call returns true
, you can then move on to fetching the results. Of course, this makes sense only if you are dealing with a query operation. This section provides a practical description of the fetch functions available in OCI8 as well as code samples showing a few different ways to fetch the retrieved data.
The PHP OCI8 extension offers several functions that can be used to fetch the result data. These functions are listed in the following table:
OCI8 fetching function |
Description |
---|---|
|
Returns the next row from the result data as an associative array, thus allowing for the fields to be referenced by name. If there are no more rows to be fetched, it returns false. |
|
Returns the next row from the result data as a numeric array. If there are no more rows to be fetched, it returns false. |
|
Returns the next row from the result data as an array. An optional second parameter... |