MongoDB
PHP Manual

MongoDB::selectCollection

(PECL mongo >=0.9.0)

MongoDB::selectCollectionGets a collection

Descrierea

public MongoCollection MongoDB::selectCollection ( string $name )

Parametri

name

The collection name.

Valorile întoarse

Returns a new collection object.

Erori/Excepții

Throws Exception if the collection name is invalid.


MongoDB
PHP Manual