MongoCursor::limit
(PECL mongo >=0.9.0)
MongoCursor::limit — Limits the number of results returned
Description
Parameters
- num
- 
      The number of results to return. 
Return Values
Returns this cursor.
Errors/Exceptions
Throws MongoCursorException if this cursor has started iterating.
See Also
MongoDB core docs on » limit.