Closes this connection
public close ( boolean | string $connection = null ) : boolean | ||
$connection | boolean | string | - If connection is not given, or FALSE then connection that would be selected for writes would be closed. In a single-node configuration, that is then the whole connection, but if you are connected to a replica set, close() will only close the connection to the primary server. |
return | boolean | - Returns if the connection was successfully closed. |