PHP Manual
Prev |  | Next

# pg_fieldsize

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

pg_fieldsize -- Returns the internal storage size of the named field

## Description

``int pg_fieldsize` (resource result, int field_number)`

pg_fieldsize() returns the internal storage size (in bytes) of the field number in the given PostgreSQL `result`. Field numbering starts at 0. A field size of -1 indicates a variable length field. This function will return `FALSE` on error.

See also pg_fieldlen() and pg_fieldtype().

Prev | Home | Next
pg_fieldprtlen | Up | pg_fieldtype