oci_fetch_array     (PHP 5)
oci_fetch_array -- Returns the next row from the result data as an associative or
     numeric array, or both
    
Description array 
oci_fetch_array  ( resource statement [, int mode] )
     Returns an array, which corresponds to the next result row or FALSE 
     oci_fetch_array()  returns an array with both
     associative and numeric indices.
    
Note:  This function sets NULL fields to
PHP NULL 
     An optional second parameter can be any combination of the following
     constants:
     
       OCI_BOTH OCI_ASSOC OCI_NUM  
       OCI_ASSOC oci_fetch_assoc()  
       OCI_NUM oci_fetch_row()  
       OCI_RETURN_NULLS NULL  
       OCI_RETURN_LOBS  
     Default 
mode  is 
OCI_BOTH .
    
     It should be mentioned here, that oci_fetch_array() 
     is insignificantly oci_fetch_row() 
Note:  
      Oracle returns all field names in uppercase and associative indices in the result array will be uppercased too.
     
     
Example 1. oci_fetch_array()  with OCI_BOTH  
<?php =  oci_connect ( "apelsin" ,  "kanistra" ); $query  =  "SELECT id, name FROM fruits" ; $statement  =  oci_parse  ( $connection ,  $query ); oci_execute  ( $statement ); $row  =  oci_fetch_array  ( $statement ,  OCI_BOTH )) { $row [ 0 ]. " and " . $row [ 'ID' ]. " is the same<br>" ; $row [ 1 ]. " and " . $row [ 'NAME' ]. " is the same<br>" ; ?> 
 
    
     
Example 2. oci_fetch_array()  with
       OCI_NUM  
<?php =  oci_connect ( "user" ,  "password" ); $query  =  "SELECT id, name, lob_field FROM fruits" ; $statement  =  oci_parse  ( $connection ,  $query ); oci_execute  ( $statement ); $row  =  oci_fetch_array  ( $statement ,  OCI_NUM )) { $row [ 0 ]. "<br>" ; $row [ 1 ]. "<br>" ; $row [ 2 ]-> read ( 100 ). "<br>" ;   //this will output first 100 bytes from LOB } ?> 
 
    
     
Example 3. oci_fetch_array()  with
       OCI_ASSOC  
<?php =  oci_connect ( "user" ,  "password" ); $query  =  "SELECT id, name, lob_field FROM fruits" ; $statement  =  oci_parse  ( $connection ,  $query ); oci_execute  ( $statement ); $row  =  oci_fetch_array  ( $statement ,  OCI_NUM )) { $row [ 'ID' ]. "<br>" ; $row [ 'NAME' ]. "<br>" ; $row [ 'LOB_FIELD' ]. "<br>" ;   //this will output "Object id #1" } ?> 
 
    
     
Example 4. oci_fetch_array()  with
       OCI_RETURN_LOBS  
<?php =  oci_connect ( "user" ,  "password" ); $query  =  "SELECT id, name, lob_field FROM fruits" ; $statement  =  oci_parse  ( $connection ,  $query ); oci_execute  ( $statement ); $row  =  oci_fetch_array  ( $statement ,  OCI_NUM )) { $row [ 0 ]. "<br>" ; $row [ 1 ]. "<br>" ; $row [ 'LOB_FIELD' ]. "<br>" ;   //this will output LOB's content } ?> 
 
    For details on the data type mapping performed by 
the oci8 driver, see the datatypes 
supported by the driver 
     See also oci_fetch_assoc() oci_fetch_object() oci_fetch_row() oci_fetch_all()