Home > PHP > Function > Firebird/InterBase > ibase_fetch_assoc()

ibase_fetch_assoc()

ibase_fetch_assoc - Fetch a result row from a query as an associative array

Syntax

array ibase_fetch_assoc (resource $result, int $fetch_flag)

Arguments

  • result - The result handle.
  • fetch_flag - fetch_flag is a combination of the constants IBASE_TEXT and IBASE_UNIXTIME ORed together. Passing IBASE_TEXT will cause this function to return BLOB contents instead of BLOB ids. Passing IBASE_UNIXTIME will cause this function to return date/time values as Unix timestamps instead of as formatted strings.

Description

Fetch a result row from a query as an associative array.

Version

PHP 4.3.0, 5

Return value

Returns an associative array that corresponds to the fetched row. Subsequent calls will return the next row in the result set, or FALSE if there are no more rows.