pg_fieldtype

(PHP3 , PHP4 )

pg_fieldtype --  Returns the type name for the corresponding field number

Description

string pg_fieldtype (int result_id, int field_number)

Pg_fieldtype() will return a string containing the type name of the given field in the given PostgreSQL result identifier. Field numbering starts at 0.