参考文档 http://php.net/manual/zh/mongocollection.find.php
php 操作经常使用的是数组
MongoCollection::find — 查询该集合,并返回结果集的 MongoCursor
所以经常需要对结果进行下转换
$m = new MongoClient();
$db = $m->selectDB('test');
$collection = new MongoCollection($db, 'phpmanual');
$cursor = $collection->find();
$array = iterator_to_array($cursor);