PHP 手册
后退 |  | 前进

# pdo_drivers

(PHP 5 >= 5.1.0RC1)

pdo_drivers -- Return an array of available PDO drivers

## 说明

array pdo_drivers ( void )

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

`<?php print_r(pdo_drivers()); ?>`

上例的输出类似于：

    Array
    (
        [0] => mysql
        [1] => sqlite
    )

后退 | 起点 | 前进
PDOStatement::setFetchMode | 上一级 | PHP / Java Integration