MongoDB\Driver\Cursor
PHP Manual

MongoDB\Driver\Cursor::toArray

(mongodb >=0.4.0)

MongoDB\Driver\Cursor::toArrayReturns an array of all result documents for this cursor

Beschreibung

final public array MongoDB\Driver\Cursor::toArray ( void )

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

Fehler/Exceptions

Beispiele

Beispiel #1 MongoDB\Driver\Cursor::toArray() example

<?php

/* ... */

?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

...

Siehe auch


MongoDB\Driver\Cursor
PHP Manual