db_close()
db_close($db = NULL)
【功能】
关闭 DB 连接。
【参数】
$db:DB 实例
【用例】
<?php
$dbconf = array (
"type" => "pdo_mysql",
"pdo_mysql" => array (
"master" => array (
"host" => "localhost",
"user" => "root",
"password" => "root",
"name" => "test",
"tablepre" => "bbs_",
"charset" => "utf8",
"engine" => "innodb",
),
"slaves" => array (),
),
);
include "./xiunophp/xiunophp.php";
$newdb = db_new($dbconf);
db_close($newdb);
?>