|
MongoDB::getCollectionNamesGets an array of names for all collections in this database Beschreibung
public array MongoDB::getCollectionNames
([ array
$options = array()
] )Gets a list of all collections in the database and returns their names as an array of strings.
Parameter-Liste
RückgabewerteReturns the collection names as an array of strings. Fehler/ExceptionsFor MongoDB 2.6 and earlier, MongoException will be thrown if a non-string value was specified for the "filter" option's "name" criteria. Changelog
BeispieleBeispiel #1 MongoDB::getCollectionNames example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: ... Found collection: img Found collection: beer Found collection: collation ... Siehe auch
|