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