Asf_Db_AbstractAdapter::close

释放数据库连接资源


Description

public bool close(void)

Return Values

true 代表成功, false 代表失败

Examples

Example #1

<?php
$configs = array(
    'dsn' => array('host' => '127.0.0.1', 'dbname' => 'test', 'port' => 6666),
    'username' => 'test',
    'password' => 'AbcdefRDvgedf',
);

$mysql = new Asf_Db_Adapter_Mysql($configs);
var_dump($mysql->close());