(PHP 4 >= 4.3.0, PHP 5, PHP 7)
Fetches all rows from a result as an array
array pg_fetch_all ( resource $result )
pg_fetch_all() returns an array that contains all rows (records) in the result resource.
Note: This function sets NULL fields to the PHP NULL value.
Parameters:
result
PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute