tests/Frameworks/WordPress/Version_4_8/wp-includes/wp-db.php
/**
	 * Closes the current database connection.
	 *
	 * @since 4.5.0
	 * @access public
	 *
	 * @return bool True if the connection was successfully closed, false if it wasn't,
	 *              or the connection doesn't exist.
	 */
Closes the current database connection.

@return bool True if the connection was successfully closed, false if it wasn't,
or the connection doesn't exist.
Closes the current database connection . @return bool True if the connection was successfully closed false if it wasn ' t or the connection doesn ' t exist .
public function close() {
		if ( ! $this->dbh ) {
			return false;
		}
		if ( $this->use_mysqli ) {
			$closed = mysqli_close( $this->dbh );
		} else {
			$closed = mysql_close( $this->dbh );
		}
		if ( $closed ) {
			$this->dbh = null;
			$this->ready = false;
			$this->has_connected = false;
		}
		return $closed;
	}
public function close ( ) { if ( ! $ this -> dbh ) { return false ; } if ( $ this -> use_mysqli ) { $ closed = mysqli_close ( $ this -> dbh ) ; } else { $ closed = mysql_close ( $ this -> dbh ) ; } if ( $ closed ) { $ this -> dbh = null ; $ this -> ready = false ; $ this -> has_connected = false ; } return $ closed ; }
Closes the current database connection.
Closes the current database connection .