pg_field_num

 int pg_field_num ( resource $result , string $field_name ) 

説明

pg_field_num() will return the number of the field number that corresponds to the field_name in the given PostgreSQL result resource. Note: This function used to be called pg_fieldnum().

戻り値

The field number (numbered from 0), or -1 on error.