(PECL mongo >=1.0.5)
MongoCursor::info — Gets the query, fields, limit, and skip for this cursor
This can be called before or after the query.
Diese Funktion hat keine Parameter.
The query, fields, limit, and skip for this cursor as an associative array.
Beispiel #1 MongoCursor::info() example
<?php
$m = new Mongo();
$cursor = $m->foo->bar->find(array("x" => 4), array("y" => false));
var_dump($cursor->info());
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
array(5) { ["ns"]=> string(7) "foo.bar" ["limit"]=> int(0) ["skip"]=> int(0) ["query"]=> array(1) { ["x"]=> int(4) } ["fields"]=> array(1) { ["y"]=> int(0) } }