MongoClient
PHP Manual

MongoClient::selectDB

(PECL mongoclient >=0.9.0)

MongoClient::selectDBGets a database

Beschreibung

public MongoDB MongoClient::selectDB ( string $name )

Parameter-Liste

name

The database name.

Rückgabewerte

Returns a new database object.

Fehler/Exceptions

Throws Exception if the database name is invalid.


MongoClient
PHP Manual