MongoClient::close
MongoClient::__construct
MongoClient
PHP Manual

# MongoClient::connect

(PECL mongoclient >=0.9.0)

MongoClient::connect — Connects to a database server

### Opis

public bool MongoClient::connect ( void )

### Parametry

Ta funkcja nie posiada parametrów.

### Zwracane wartości

If the connection was successful.

### Błędy/Wyjątki

Throws MongoConnectionException if it fails to connect to the database.

MongoClient::close
MongoClient::__construct
MongoClient
PHP Manual