MongoClient::selectCollection
MongoClient::setReadPreference
MongoClient
PHP Manual

# MongoClient::selectDB

(PECL mongoclient >=0.9.0)

MongoClient::selectDB — Gets a database

### Opis

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

### Parametry

`name`

  The database name.

### Zwracane wartości

Returns a new db object.

### Błędy/Wyjątki

Throws InvalidArgumentException if the database name is invalid.

MongoClient::selectCollection
MongoClient::setReadPreference
MongoClient
PHP Manual