DB_common::disconnect()

DB_common::disconnect() – Disconnects from a database

Synopsis

boolean disconnect ( )

Description

Disconnects from a database

Return value

boolean - Returns TRUE on success, FALSE on failure.

Note

This function can not be called statically.

Example

Using disconnect()

<?php
require_once 'DB.php';

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

$db->disconnect();
?>
Creates a new sequence (Previous) Deletes a sequence (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.