MongoClient
PHP Manual

MongoClient::selectDB

(PECL mongoclient >=0.9.0)

MongoClient::selectDBGets a database

说明

public MongoDB MongoClient::selectDB ( string $name )

参数

name

The database name.

返回值

Returns a new database object.

错误/异常

Throws Exception if the database name is invalid.


MongoClient
PHP Manual