(PHP 3, PHP 4 >= 4.0.0)
pg_fieldname() returns the name of the field occupying the given field_number in the given PostgreSQL result resource. Field numbering starts from 0.
See also pg_fieldnum().