MongoCursor::limit

(PECL mongo >=0.9.0)

MongoCursor::limitLimits the number of results returned

Beschreibung

public MongoCursor::limit ( int $num ) : MongoCursor

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