| 
 | MongoClient::closeCloses this connection 
 Description
   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. 
 Parameters
 
 Return ValuesReturns if the connection was successfully closed. ExamplesExample #1 MongoClient::close example This example demonstrates how to selectively close all connections for secondaries only. 
<?phpThe above example will output: Closing 'whisky:13001;X;4948': ok Changelog
 
 See Also
 |