Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Returns the number of fields in a result
pg_num_fields(PgSql\Result $result): int
        $a['affected rows'] = pg_affected_rows($result);

        
$a['last OID'] = pg_last_oid($result);



        
$fields pg_num_fields($result);



        for (
$i 0$i $fields; ++$i) {

            
$field = [