MongoCursor::limit
(PECL mongo >=0.9.0)
MongoCursor::limit — Limits the number of results returned
Beschreibung
Parameter-Liste
-
num -
The number of results to return.
Rückgabewerte
Returns this cursor.
Fehler/Exceptions
Throws MongoCursorException if this cursor has started iterating.
Siehe auch
- MongoDB core docs on » limit.
- MongoCursor::batchSize() - Limits the number of elements returned in one batch.
- MongoCursor::skip() - Skips a number of results