MongoDB::selectCollection

(PECL mongo >=0.9.0)

MongoDB::selectCollectionGets a collection

Descrição

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

Parâmetros

name

The collection name.

Valor Retornado

Returns a new collection object.

Erros

Throws Exception if the collection name is invalid.