(mongodb >=0.4.0)
MongoDB\Driver\Cursor::toArray — Returns an array of all result documents for this cursor
この関数にはパラメータはありません。
例1 MongoDB\Driver\Cursor::toArray() example
<?php/* ... */?>
上の例の出力は、 たとえば以下のようになります。
...