How can I check if a connection has actually been closed?
$con = new Conexao();
$con->abrirConexao();
...
$con->fecharConexao();
I use a variable to instantiate the Conexao
class that is in another file. I would just like to know how I can check if the fecharConexão()
method actually closed the previously opened connection.
My method to close the connection is this:
public function fecharConexao(){
return mysqli_close($this->conexao);
}
I would just like a notification (just so I know) that the connection is terminated. How do I do this?