pg_field_name returns the name of the field occupying the given field in the given result instance. Field numbering starts from 0.
This function used to be called pg_fieldname.
An PgSql\Result instance, returned by pg_query, pg_query_params or pg_execute(among others).
Field number, starting from 0.
The field name.
|8.1.0||The result parameter expects an PgSql\Result instance now; previously, a resource was expected.|