(PHP3 , PHP4 )
string pg_fieldname (int result_id, int field_number)
string pg_fieldname
Pg_fieldname() will return the name of the field occupying the given column number in the given PostgreSQL result identifier. Field numbering starts from 0.