pg_num_fields Returns the number of fields in a result &reftitle.description; intpg_num_fields PgSql\Resultresult pg_num_fields returns the number of fields (columns) in the PgSql\Result instance. This function used to be called pg_numfields. &reftitle.parameters; result &pgsql.parameter.result; &reftitle.returnvalues; The number of fields (columns) in the result. On error, -1 is returned. &reftitle.changelog; &Version; &Description; &pgsql.changelog.result-object; &reftitle.examples; <function>pg_num_fields</function> example ]]> &example.outputs; &reftitle.seealso; pg_num_rows pg_affected_rows