MongoClient
PHP Manual

MongoClient::selectDB

(PECL mongoclient >=0.9.0)

MongoClient::selectDBGets a database

Descrierea

public MongoDB MongoClient::selectDB ( string $name )

Parametri

name

The database name.

Valorile întoarse

Returns a new database object.

Erori/Excepții

Throws Exception if the database name is invalid.


MongoClient
PHP Manual