oci_fetch_array Returns the next row from the result data as an associative or numeric array, or both &reftitle.description; arrayoci_fetch_array resourcestatement intmode Returns an array, which corresponds to the next result row. &oci.datatypes; It should be mentioned here, that oci_fetch_array is insignificantly slower, than oci_fetch_row, but much more handy. &reftitle.parameters; statement A valid OCI statement identifier. statement An optional second parameter can be any combination of the following constants: OCI_BOTH - return an array with both associative and numeric indices (the same as OCI_ASSOC + OCI_NUM). This is the default behavior. OCI_ASSOC - return an associative array (as oci_fetch_assoc works). OCI_NUM - return a numeric array, (as oci_fetch_row works). OCI_RETURN_NULLS - create empty elements for the &null; fields. OCI_RETURN_LOBS - return the value of a LOB of the descriptor. Default mode is OCI_BOTH. &reftitle.returnvalues; Returns an array with both associative and numeric indices, or &false; if there are no more rows in the statement. &database.fetch-null; Oracle returns all field names in uppercase and associative indices in the result array will be uppercased too. &reftitle.examples; <function>oci_fetch_array</function> with <constant>OCI_BOTH</constant> example "; echo $row[1]." and ".$row['NAME']." is the same
"; } ?> ]]>
<function>oci_fetch_array</function> with <constant>OCI_NUM</constant> example "; echo $row[1]."
"; echo $row[2]->read(100)."
"; //this will output first 100 bytes from LOB } ?> ]]>
<function>oci_fetch_array</function> with <constant>OCI_ASSOC</constant> example "; echo $row['NAME']."
"; echo $row['LOB_FIELD']."
"; //this will output "Object id #1" } ?> ]]>
<function>oci_fetch_array</function> with <constant>OCI_RETURN_LOBS</constant> example "; echo $row[1]."
"; echo $row['LOB_FIELD']."
"; //this will output LOB's content } ?> ]]>
&reftitle.seealso; oci_fetch_assoc oci_fetch_object oci_fetch_row oci_fetch_all