pg_field_num
PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
pg_field_num - Returns the field number of the named field
Code Examples
Example #1 Getting information about fields
Result: Column 'title' is field number: 2