MongoClient
PHP Manual

MongoClient::connect

(PECL mongoclient >=0.9.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