MongoClient
PHP Manual

MongoClient::selectDB

(PECL mongo >=1.3.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