odbc_fetch_array

Fetch a result row as an associative array

&reftitle.description; ``array``false```odbc_fetch_array` `Odbc\Result` `statement` ``int``null```row`&null;

Fetch an associative `array` from an ODBC query.

&reftitle.parameters;

`statement`

- &odbc.result.object; from `odbc_exec`.

`row`

- Optionally choose which row number to retrieve.

&reftitle.returnvalues;

Returns an array that corresponds to the fetched row, or &false; if there are no more rows.

&reftitle.changelog;

&Version; | &Description;
&odbc.changelog.result-param;
8.4.0 | `row` is now nullable.

&reftitle.notes;

This function exists when compiled with DBMaker, IBM DB2 or UnixODBC support.

&reftitle.seealso;

- `odbc_fetch_row`
- `odbc_fetch_object`
- `odbc_num_rows`