pg_fetch_array

pg_fetch_array

(PHP 4, PHP 5, PHP 7)

pg_fetch_arrayFetch a row as an array

Description

array pg_fetch_array ( resource $result [, int $row [, int $result_type = PGSQL_BOTH ]] )

pg_fetch_array() returns an array that corresponds to the fetched row (record).

pg_fetch_array() is an extended version of pg_fetch_row(). In addition to storing the data in the numeric indices (field number) to the result array, it