Php/docs/mongocursor.limit
From Get docs
MongoCursor::limit
(PECL mongo >=0.9.0)
MongoCursor::limit — Limits the number of results returned
Description
public MongoCursor::limit
( int $num
) : MongoCursor
Parameters
num
- The number of results to return.
Return Values
Returns this cursor.
See Also
- MongoDB core docs on » limit.
- MongoCursor::batchSize() - Limits the number of elements returned in one batch
- MongoCursor::skip() - Skips a number of results