MongoClient
PHP Manual

MongoClient::connect

(PECL mongo >=1.3.0)

MongoClient::connectConnects to a database server

Descrição

public bool MongoClient::connect ( void )

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

If the connection was successful.

Erros

Throws MongoConnectionException if it fails to connect to the database.


MongoClient
PHP Manual