Mongo Functions
PHP Manual

mongo_close

(PECL mongo >= 0.8.0)

mongo_closeCloses a connection to the database

Description

bool mongo_close ( resource $connection )

Close a connection to the database and frees the connection object.

Parameters

connection

The database connection to close.

Return Values

Returns TRUE on success or FALSE on failure.

See Also


Mongo Functions
PHP Manual