MongoDB\Driver\CursorInterface::toArray
(mongodb >=1.6.0)
MongoDB\Driver\CursorInterface::toArray — Returns an array containing all results for this cursor
说明
Iterates the cursor and returns its results in an array. MongoDB\Driver\CursorInterface::setTypeMap() may be used to control how documents are unserialized into PHP values.
参数
此函数没有参数。
返回值
Returns an array containing all results for this cursor.
错误/异常
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
参见
- MongoDB\Driver\Cursor::toArray() - Returns an array containing all results for this cursor
- MongoDB\Driver\CursorInterface::setTypeMap() - Sets a type map to use for BSON unserialization
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/mongodb-driver-cursorinterface.toarray.php