Home > PHP > Function > ODBC > odbc_fetch_array()

odbc_fetch_array()

odbc_fetch_array - Fetch a result row as an associative array

Syntax

array odbc_fetch_array (resource $result, int $rownumber)

Arguments

  • result - The result resource from odbc_exec().
  • rownumber - Optionally choose which row number to retrieve.

Description

Fetch an associative array from an ODBC query. See the changelog below for when this function is available.

Version

PHP 4.0.2, 5

Return value

Returns an array that corresponds to the fetched row, or FALSE if there are no more rows.