Home > PHP > Function > ODBC > odbc_fetch_object()

odbc_fetch_object()

odbc_fetch_object - Fetch a result row as an object

Syntax

object odbc_fetch_object (resource $result, int $rownumber)

Arguments

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

Description

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

Version

PHP 4.0.2, 5

Return value

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