disconnect() public method

This isn't generally necessary as PHP will automatically close the connection in the end of the script execution, but it can be useful to free resources when a script needs to connect tomultiple databases in sequence.
public disconnect ( ) : void
return void
コード例 #1
0
ファイル: Sql.php プロジェクト: kalkin/solarphp
 /**
  * 
  * Close session handler.
  * 
  * @return bool
  * 
  */
 public function close()
 {
     $this->_sql->disconnect();
     $this->_sql = null;
     return true;
 }