MongoDB
PHP 手册

MongoDB::selectCollection

(PECL mongo >=0.9.0)

MongoDB::selectCollectionGets a collection

说明

public MongoCollection MongoDB::selectCollection ( string $name )

参数

name

The collection name.

返回值

Returns a new collection object.

错误/异常

Throws Exception if the collection name is invalid.


MongoDB
PHP 手册