|
MongoDB::getCollectionNamesこのデータベースのすべてのコレクション名の配列を取得する 説明
public array MongoDB::getCollectionNames
([ array
$options = array()
] )指定したデータベースのすべてのコレクションのリストを取得し、その名前を文字列の配列で返します。
パラメータ
返り値コレクションの名前を文字列の配列で返します。 エラー / 例外MongoDB 2.6 およびそれ以前のバージョンでは、 "filter" オプションの "name" に文字列以外の値を指定した場合に MongoException をスローします。 変更履歴
例例1 MongoDB::getCollectionNames の例
<?php 上の例の出力は、 たとえば以下のようになります。 ... Found collection: img Found collection: beer Found collection: collation ... 参考
|