MongoCursor::limit

(PECL mongo >=0.9.0)

MongoCursor::limitLimits the number of results returned

Beskrivelse

public MongoCursor MongoCursor::limit ( int $num )

Parametre

num

The number of results to return.

Returnerings Værdier

Returns this cursor.

Fejl/Undtagelser

Throws MongoCursorException if this cursor has started iterating.

Se også

MongoDB core docs on » limit.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top