MongoClient
PHP Manual

MongoClient::selectDB

(PECL mongoclient >=0.9.0)

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