PHPTS:一键免费搭建 Nginx + PHP + MySQL 运行环境

MongoDB::selectCollection

(PECL mongo >=0.9.0)

MongoDB::selectCollectionGets a collection

说明

public MongoDB::selectCollection ( string $name ) : MongoCollection

参数

name

The collection name.

返回值

Returns a new collection object.

错误/异常

Throws Exception if the collection name is invalid.