MongoClient
PHP Manual

MongoClient::selectDB

(PECL mongoclient >=0.9.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