update : 2015.11.03
php.shukuma.com검색:
|
MongoDB::listCollections(PECL mongo >=0.9.0) MongoDB::listCollections — Gets an array of MongoCollection objects for all collections in this database 설명
public array MongoDB::listCollections
([ array
$options = array()
] )Gets a list of all collections in the database and returns them as an array of MongoCollection objects.
인수
반환값Returns an array of MongoCollection objects. 오류/예외For MongoDB 2.6 and earlier, MongoException will be thrown if a non-string value was specified for the "filter" option's "name" criteria. 변경점
예제Example #1 MongoDB::listCollections() example The following example demonstrates running count on each collection in a database.
<?php 위 예제의 출력 예시: ... amount of documents in demo.pubs: 4 amount of documents in demo.elephpants: 3 amount of documents in demo.cities: 22840 ... 참고
|