pg_field_type()
pg_field_type - Returns the type name for the corresponding field number
Syntax
string pg_field_type (
resource $result,
int $field_number)
Arguments
- result - PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (among others).
- field_number - Field number, starting from 0.
Description
pg_field_type() returns a string containing the base type name of the given field_number in the given PostgreSQL result resource.
Version
PHP 4.2.0, 5
Return value
A string containing the base name of the field's type, or FALSE on error.