boolean disconnect (
)
Disconnects from a database
boolean - Returns TRUE on success, FALSE on failure.
This function can not be called statically.
Using disconnect()
<?php
require_once 'DB.php';
$db =& DB::connect('pgsql://someuser:apasswd@localhost/thedb');
if (PEAR::isError($db)) {
die($db->getMessage());
}
$db->disconnect();
?>