pg_field_num
Description
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().
Parameters
resultPostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (among others).
field_nameThe name of the field.
Examples
