Closes the current database connection.
Source
public function close() {
if ( ! $this->dbh ) {
return false;
}
$closed = mysqli_close( $this->dbh );
if ( $closed ) {
$this->dbh = null;
$this->ready = false;
$this->has_connected = false;
}
return $closed;
}
Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.