update : 2015.11.03
php.shukuma.com검색:
|
Using a Cursor to Get All of the DocumentsIn order to get all the documents in the collection, we will use MongoCollection::find(). The find() method returns a MongoCursor object which allows us to iterate over the set of documents that matched our query. So to query all of the documents and print them out:
<?php See AlsoThe API documentation on MongoCollection::find() contains more information about finding data. |