pg_result_error_field

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Returns an individual field of an error report
<?php pg_result_error_field(PgSql\Result $result, int $field_code): string|false|null
<?php         if (-1 === $a['num rows']) {

            foreach (self::DIAG_CODES as $k => $v) {

                $a['error'][$k] = pg_result_error_field($result, $v);

            }

        }