MongoClient::selectCollection
MongoClient::setReadPreference
MongoClient
PHP Manual

# MongoClient::selectDB

(PECL mongoclient >=0.9.0)

MongoClient::selectDB — Gets a database

### Descrição

public MongoDB MongoClient::selectDB ( string `$name` )

### Parâmetros

`name`

  The database name.

### Valor Retornado

Returns a new database object.

### Erros

Throws Exception if the database name is invalid.

MongoClient::selectCollection
MongoClient::setReadPreference
MongoClient
PHP Manual