(mongodb >=0.4.0)
MongoDB\Driver\Cursor::toArray — Returns an array of all result documents for this cursor
This function has no parameters.
Example #1 MongoDB\Driver\Cursor::toArray() example
<?php
/* ... */
?>
The above example will output something similar to:
...