pg_field_is_null
Function • Params changed in PHP 8.1
Test if a field is SQL NULL.
pg_field_is_null Function synopsis
pg_field_is_null(
PgSql\Result $result,
$row,
string|int $field = <default>
): int|false
Parameters
$result
TypePgSql\Result
$row
Row number in result to fetch. Rows are numbered from 0 upwards. If omitted, current row is fetched.
$field
OptionalTypestring|intDefault value
Field number (starting from 0) as an int or
the field name as a string.
Return value
Typeint|false
Returns 1 if the field in the given row is SQL NULL, 0
if not. false is returned if the row is out of range, or upon any other error.
Changes to the pg_field_is_null Function
PHP 8.1
- Parameter type added for parameter #1 (
$result):PgSql\Result
pg_field_is_null(
- $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_is_null(
$result,
$row,
- $field_name_or_number
+ string|int $field = <default>
- )
+ ): int|false pg_field_is_null Function Availability
pg_field_is_null 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 |