odbc_data_source
Function • Params changed in PHP 8.4
Returns information about available DSNs.
odbc_data_source Function synopsis
odbc_data_source(Odbc\Connection $odbc, int $fetch_type): array|false|null
Parameters
$odbc
TypeOdbc\Connection
$fetch_type
Typeint
The $fetch_type can be one of two constant types:
SQL_FETCH_FIRST, SQL_FETCH_NEXT.
Use SQL_FETCH_FIRST the first time this function is
called, thereafter use the SQL_FETCH_NEXT.
Return value
Typearray|false|null
Returns false on error, an array upon success, and null after fetching
the last available DSN.
Changes to the odbc_data_source Function
PHP 8.4
- Parameter type added for parameter #1 (
$odbc):Odbc\Connection
- odbc_data_source($odbc, int $fetch_type): array|false|null
+ odbc_data_source(Odbc\Connection $odbc, int $fetch_type): array|false|null PHP 8.1
- Return type changed:
array|falsetoarray|false|null
- odbc_data_source($odbc, int $fetch_type): array|false
+ odbc_data_source($odbc, int $fetch_type): array|false|null PHP 8.0
- Return type added:
array|false - Parameter name of parameter #1 changed:
$connection_idto$odbc - Parameter type added for parameter #2 (
$fetch_type):int
- odbc_data_source($connection_id, $fetch_type)
+ odbc_data_source($odbc, int $fetch_type): array|false odbc_data_source Function Availability
odbc_data_source 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 |