定義
Return Values
コレクション名。 これは、 listCollections
コマンドの応答で返されるname
フィールドに対応します。
例
$db->createCollection('foo'); // Retrieves the collection name foreach ($db->listCollections(['filter' => ['name' => 'foo']]) as $info) { echo $info->getName(); }
出力は次のようになります。
foo
その他の参照
MongoDB マニュアルのlistCollectionsコマンド参照