pg_field_type_oid

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Returns the type ID (OID) for the corresponding field number
<?php pg_field_type_oid(PgSql\Result $result, int $field): string|int