DB_common::disconnect()

DB_common::disconnect() – データベースとの接続を切断する

Synopsis

boolean disconnect ( )

Description

データベースとの接続を切断します。

Return value

boolean - Returns TRUE on success, FALSE on failure.

Note

This function can not be called statically.

Example

disconnect() の使用法

<?php
require_once 'DB.php';

$db =& DB::connect('pgsql://someuser:apasswd@localhost/thedb');
if (
PEAR::isError($db)) {
    die(
$db->getMessage());
}

$db->disconnect();
?>