(PHP 4 >= 4.2.0)
pg_field_name() returns the name of the field occupying the given field_number in the given PostgreSQL result resource. Field numbering starts from 0.
Nota: This function used to be called pg_fieldname().
See also pg_field_num().