|
MongoDB::listCollectionsGets an array of all MongoCollections for this database Description
public array MongoDB::listCollections
([ bool
$includeSystemCollections = false
] )Gets a list of all the collections in the database and returns them as an array of MongoCollection objects. Parameters
Return ValuesReturns an array of MongoCollection objects. Changelog
ExamplesExample #1 MongoDB::listCollections example The following example demonstrates dropping each collection in a database.
<?php The above example will output something similar to: removing sample.blog.posts... gone removing sample.critical.docs... gone removing sample.taxes... gone ... See Also
|