MongoClient
PHP Manual

MongoClient::selectDB

(PECL mongo >=1.3.0)

MongoClient::selectDBGets a database

Descrizione

public MongoDB MongoClient::selectDB ( string $name )

Elenco dei parametri

name

The database name.

Valori restituiti

Returns a new database object.

Errori/Eccezioni

Throws Exception if the database name is invalid.


MongoClient
PHP Manual