dba_handlers()

返回当前系统上可用的数据库处理程序的列表

首字母:D

函数: dba_handlers()

适用版本: PHP 5, PHP 7

用法:

dba_handlers() 函数用于返回当前系统上可用的数据库处理程序的列表。数据库处理程序是用于管理数据库文件的工具。

示例:

// 获取系统上可用的数据库处理程序列表
$handlers = dba_handlers();
// 遍历处理程序列表并输出
foreach ($handlers as $handler) {
 echo $handler . "
"; }

在上面的示例中,我们使用 dba_handlers() 函数获取系统上可用的数据库处理程序列表并将其保存在变量 $handlers 中。然后我们使用 foreach 循环遍历 $handlers,输出每个处理程序的名称。

同首字母函数