public function disconnect() {
    if ($this->connected) {
      if (is_a($this->link, 'mysqli')) {
        unset($this->link);
      }
      $this->link = null;
      $this->connected = false;
    }
    return $this->connected;
  }
public function disconnect() {
    if ($this->connected) {
      if (is_a($this->link, 'mysqli')) {
        unset($this->link);
      }
      $this->link = null;
      $this->connected = false;
    }
    return $this->connected;
  }
public function disconnect ( ) { if ( $ this -> connected ) { if ( is_a ( $ this -> link , 'mysqli' ) ) { unset ( $ this -> link ) ; } $ this -> link = null ; $ this -> connected = false ; } return $ this -> connected ; }
Disconnect from the MySQL database.

@return bool Whether this instance is connected to a MySQL database after
the method has run.
Disconnect from the MySQL database .