|
MongoCursor::infoGets the query, fields, limit, and skip for this cursor Description
public array MongoCursor::info
( void
)
This can be called before or after the query. ParametersThis function has no parameters. Return ValuesReturns the namespace, limit, skip, query, and fields for this cursor. Changelog
ExamplesExample #1 MongoCursor::info example
<?php The above example will output something similar to: 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) } } |