PDO::getAvailableDrivers — Returns an array of available drivers (PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)
static array PDO::getAvailableDrivers ( void )
array pdo_drivers ( void )
This function (method) returns all PDO drivers currently available in the parameter DSN of PDO::__construct().
PDO::getAvailableDrivers() returns an array containing the names of available PDO drivers. If no driver is available, an empty array is returned.
<?phpprint_r(PDO::getAvailableDrivers());?>
The output of the above routine is similar to:
Array( [0] => mysql [1] => sqlite)