pg_field_prtlen

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Returns the printed length
<?php pg_field_prtlen(PgSql\Result $result, string|false|null $row, mixed $field_name_or_number): int
<?php                 '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',

                'display' => pg_field_prtlen($result, $i).' chars',

            ];

            if (' (OID: )' === $field['table']) {

                $field['table'] = null;