버전 1.9에 새로 추가되었습니다.
정의
Return Values
collection에 대한 추가 정보가 포함된 배열입니다. 이는 listCollections 명령 회신에서 반환된 info 필드에 해당합니다.
예시
$db = (new MongoDB\Client)->test; // Creates a view with the readOnly option set to "true" $db->createCollection(    'myView',    ['viewOn' => 'myCollection'],    ['readOnly' => true] ); // Retrieves information about the collection view foreach ($db->listCollections(['filter' => ['name' => 'myView']]) as $info) {    var_dump($info->getInfo()); } 
이 경우 출력은 다음과 유사합니다:
array(1) {   ["readOnly"]=>   bool(true) } 
다음도 참조하세요.
- MongoDB 매뉴얼의 listCollections 명령 참조