MongoCursor
PHP Manual

MongoCursor::limit

(PECL mongo >=0.9.0)

MongoCursor::limitLimits the number of results returned

Opis

public MongoCursor MongoCursor::limit ( int $num )

Parametry

num

The number of results to return.

Zwracane wartości

Returns this cursor.

Błędy/Wyjątki

Throws MongoCursorException if this cursor has started iterating.

Zobacz też:

MongoDB core docs on » limit.


MongoCursor
PHP Manual