pg_fetch_all_columns()
pg_fetch_all_columns - Fetches all rows in a particular result column as an array
Syntax
array pg_fetch_all_columns (
resource $result,
int $column)
Arguments
- result - PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (among others).
- column - Column number, zero-based, to be retrieved from the result resource. Defaults to the first column if not specified.
Description
pg_fetch_all_columns() returns an array that contains all rows (records) in a particular column of the result resource.
Version
PHP 5.1.0
Return value
An array with all values in the result column.