Php/docs/mongodb.selectcollection

From Get docs

MongoDB::selectCollection

(PECL mongo >=0.9.0)

MongoDB::selectCollectionGets a collection


Description

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

Parameters

name
The collection name.


Return Values

Returns a new collection object.


Errors/Exceptions

Throws Exception if the collection name is invalid.