정의
Return Values
collection 이름입니다. 이는 listCollections 명령 회신에서 반환된 name 필드에 해당합니다.
예시
$db->createCollection('foo'); // Retrieves the collection name foreach ($db->listCollections(['filter' => ['name' => 'foo']]) as $info) {    echo $info->getName(); } 
이 경우 출력은 다음과 유사합니다:
foo 
다음도 참조하세요.
- MongoDB 매뉴얼의 listCollections 명령 참조