|
MongoDB::getCollectionNamesGet all collections from this database Description
public array MongoDB::getCollectionNames
([ bool
$includeSystemCollections = false
] )Returns an array of all the collection names for the given database. Parameters
Return ValuesReturns the names of the all the collections in the database as an array. ExamplesExample #1 MongoDB::getCollectionNames example
<?phpThe above example will output something similar to:
array(2) {
[0]=>
string(9) "addresses"
[1]=>
string(5) "users"
}
See Also
|