pg_field_table

Supported Versions: PHP 5 >= 5.2.0, PHP 7, PHP 8
Returns the name or oid of the tables field
<?php pg_field_table(PgSql\Result $result, int $field, bool $oid_only = false): string|int|false
<?php         for ($i = 0; $i < $fields; ++$i) {

            $field = [

                'name' => pg_field_name($result, $i),

                'table' => sprintf('%s (OID: %s)', pg_field_table($result, $i), pg_field_table($result, $i, true)),

                'type' => sprintf('%s (OID: %s)', pg_field_type($result, $i), pg_field_type_oid($result, $i)),

                'nullable' => (bool) pg_field_is_null($result, $i),

                'storage' => pg_field_size($result, $i).' bytes',