title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic |
---|---|---|---|---|---|---|---|
PDO::getAvailableDrivers |
API reference for the PDO::getAvailableDrivers function in the Microsoft PDO_SQLSRV Driver for PHP for SQL Server. |
David-Engel |
davidengel |
08/10/2020 |
sql |
connectivity |
reference |
[!INCLUDEDriver_PHP_Download]
Returns an array of the PDO drivers in your PHP installation.
array PDO::getAvailableDrivers ();
An array with the list of PDO drivers.
The name of the PDO driver is used in PDO::__construct, to create a PDO instance.
PDO::getAvailableDrivers is not required to be implemented by PHP drivers. For more information about this method, see the PHP documentation.
Support for PDO was added in version 2.0 of the [!INCLUDEssDriverPHP].
<?php
print_r(PDO::getAvailableDrivers());
?>