(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.