PHP Manual
Prev |  | Next

# OCIFetchInto

OCIFetchInto -- Fetches the next row into result-array

## Description

`int OCIFetchInto`(int stmt, array &result, int [mode]);

OCIFetchInto() fetches the next row (for SELECT statements) into the `result` array. OCIFetchInto() will overwrite the previous content of `result`. By default `result` will contain a one-based array of all columns that are not NULL.

The `mode` parameter allows you to change the default behaviour. You can specify more than one flag by simply addig them up (eg OCI_ASSOC+OCI_RETURN_NULLS). The known flags are:

`OCI_ASSOC` Return an associative array.
`OCI_NUM` Return an numbered array starting with one. (DEFAULT)
`OCI_RETURN_NULLS` Return empty columns.
`OCI_RETURN_LOBS` Return the value of a LOB instead of the desxriptor.

Prev | Home | Next
OCIFetch | Up | OCIFetchStatement