MongoDB
PHP Manual

MongoDB::selectCollection

(PECL mongo >=0.9.0)

MongoDB::selectCollectionGets a collection

Descrição

public MongoCollection MongoDB::selectCollection ( string $name )

Parâmetros

name

The collection name.

Valor Retornado

Returns a new collection object.

Erros

Throws Exception if the collection name is invalid.


MongoDB
PHP Manual