odbc_fetch_array
Function • Params changed in PHP 8.4
Fetch a result row as an associative array.
odbc_fetch_array Function synopsis
odbc_fetch_array(Odbc\Result $statement, ?int $row = null): array|false
Parameters
$statement
TypeOdbc\Result
The ODBC result object from odbc_exec.
$row
OptionalType?intDefault valuenull
Optionally choose which row number to retrieve.
Return value
Typearray|false
Returns an array that corresponds to the fetched row, or false if there
are no more rows.
Changes to the odbc_fetch_array Function
PHP 8.4
- Parameter type added for parameter #1 (
$statement):Odbc\Result - Parameter type changed for parameter #2 (
$row):intto?int - Parameter default value changed for position #2 (
$row):-1tonull
- odbc_fetch_array($statement, int $row = -1): array|false
+ odbc_fetch_array(Odbc\Result $statement, ?int $row = null): array|false PHP 8.0
- Return type added:
array|false - Parameter name of parameter #1 changed:
$resultto$statement - Parameter name of parameter #2 changed:
$rownumberto$row - Parameter type added for parameter #2 (
$row):int - Parameter default value added for position #2 (
$row):-1
- odbc_fetch_array($result, $rownumber)
+ odbc_fetch_array($statement, int $row = -1): array|false odbc_fetch_array Function Availability
odbc_fetch_array 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 |