pg_field_prtlen
Function • Params changed in PHP 8.1
Returns the printed length.
pg_field_prtlen Function synopsis
pg_field_prtlen(
PgSql\Result $result,
$row,
string|int $field = <default>
): int|false
Parameters
$result
TypePgSql\Result
$row
Row number in result. Rows are numbered from 0 upwards. If omitted, current row is fetched.
$field
OptionalTypestring|intDefault value
Return value
Typeint|false
The field printed length.
Changes to the pg_field_prtlen Function
PHP 8.1
- Parameter type added for parameter #1 (
$result):PgSql\Result
pg_field_prtlen(
- $result,
+ PgSql\Result $result,
$row,
string|int $field = <default>
): int|false PHP 8.0
- Return type added:
int|false - Parameter name of parameter #3 changed:
$field_name_or_numberto$field - Parameter type added for parameter #3 (
$field):string|int - Parameter default value added for position #3 (
$field):<default>
pg_field_prtlen(
$result,
$row,
- $field_name_or_number
+ string|int $field = <default>
- )
+ ): int|false pg_field_prtlen Function Availability
pg_field_prtlen Function Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Upcoming Release | Yes |
| PHP 8.5Supported (Latest) | Yes |
| PHP 8.4Supported | Yes |
| PHP 8.3Security-Fixes Only | Yes |
| PHP 8.2Security-Fixes Only | Yes |
| PHP 8.1Unsupported | Yes |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | Yes |