MongoCursor
PHP Manual

MongoCursor::limit

(PECL mongo >=0.9.0)

MongoCursor::limitLimits the number of results returned

Descrição

public MongoCursor MongoCursor::limit ( int $num )

Parâmetros

num

The number of results to return.

Valor Retornado

Returns this cursor.

Erros

Throws MongoCursorException if this cursor has started iterating.

Veja Também

MongoDB core docs on » limit.


MongoCursor
PHP Manual