MongoClient
PHP Manual

MongoClient::selectDB

(PECL mongoclient >=0.9.0)

MongoClient::selectDBGets 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
PHP Manual