\n"; // Fine-tuned for_each method foreach ( $rowResult as $colName => $colValue ) { echo $colName, ' => ', $colValue, "
\n"; } echo "
\n"; } // Display total number of rows we fetched from cursor so far // Note: this gives number of rows fetched, not number of rows in result. echo '
Number of rows fetched from cursor so far: ', ora_numrows( $cursor ), '
'; // Close cursor ora_close( $cursor ); // Close session ora_logoff( $conn ); ?> Done!