(PHP 5 >= 5.1.0RC1)
This function returns all currently available PDO drivers which can be used in DSN parameter of PDO::__construct().
pdo_drivers() returns an array of PDO driver names. If no drivers are available, it returns an empty array.
例子 1. A pdo_drivers() example
<?phpprint_r(pdo_drivers());?>
上例的输出类似于:
Array ( [0] => mysql [1] => sqlite )