函数名:ibase_db_info()
适用版本:PHP 5, PHP 7
用法:ibase_db_info(resource $service_handle, int $db, int $action = 0): string|bool
参数:
返回值:
示例:
// 连接到 InterBase 服务器
$service_handle = ibase_service_attach('localhost', 'username', 'password');
// 连接到数据库
$db = ibase_connect('localhost:/path/to/database.fdb', 'username', 'password');
// 检索数据库信息
$info = ibase_db_info($service_handle, $db);
// 输出数据库信息
echo $info;
// 检索数据库详细信息
$detail_info = ibase_db_info($service_handle, $db, 1);
// 输出数据库详细信息
print_r($detail_info);
// 断开数据库连接
ibase_close($db);
// 断开 InterBase 服务器连接
ibase_service_detach($service_handle);
注意事项: