Home > PHP > Function > FrontBase > fbsql_fetch_object()

fbsql_fetch_object()

fbsql_fetch_object - Fetch a result row as an object

Syntax

object fbsql_fetch_object (resource $result)

Arguments

  • result - A result identifier returned by fbsql_query() or fbsql_db_query().

Description

fbsql_fetch_object() is similar to fbsql_fetch_array(), with one difference - an object is returned, instead of an array. Indirectly, that means that you can only access the data by the field names, and not by their offsets (numbers are illegal property names).

Version

PHP 4.0.6, 5

Return value

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