定義
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コマンド参照