PHP 手冊
上一頁 |  | 下一頁

# pg_field_prtlen

(PHP 4 >= 4.2.0, PHP 5)

pg_field_prtlen -- Returns the printed length

## Description

int pg_field_prtlen ( resource result [, int row_number, mixed field_name_or_number])

pg_field_prtlen() returns the actual printed length (number of characters) of a specific value in a PostgreSQL result. Row numbering starts at 0. This function will return -1 on an error.

field_name_or_number can be passed either as an integer or as a string. If it is passed as an integer, PHP recognises it as the field number, otherwise as field name.

See the example given at the pg_field_name() page.

> 備注: This function used to be called pg_fieldprtlen().

See also pg_field_size().

上一頁 | 最開頭 | 下一頁
pg_field_num | 上一層 | pg_field_size