|
MongoClient::closeCloses this connection
Beschreibung
public bool MongoClient::close
([ boolean|string
$connection
] )The MongoClient::close method forcefully closes a connection to the database, even if persistent connections are being used. You should never have to do this under normal circumstances.
Parameter-Liste
RückgabewerteReturns if the connection was successfully closed. BeispieleBeispiel #1 MongoClient::close example This example demonstrates how to selectively close all connections for secondaries only.
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: Closing 'whisky:13001;X;4948': ok Changelog
Siehe auch
|