pg_num_fields

 int pg_num_fields ( resource $result ) 

説明

pg_num_fields() returns the number of fields (columns) in a PostgreSQL result resource. Note: This function used to be called pg_numfields().

戻り値

The number of fields (columns) in the result. On error, -1 is returned.