pg_fetch_all_columns

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Fetches all rows in a particular result column as an array
<?php pg_fetch_all_columns(PgSql\Result $result, int $field = 0): array