Limits the number of results returned


(PECL mongo >=0.9.0)

MongoCursor::limitLimits the number of results returned

Описание

public MongoCursor MongoCursor::limit ( int $num )

Список параметров

num

The number of results to return.

Возвращаемые значения

Returns this cursor.

Ошибки

Throws MongoCursorException if this cursor has started iterating.

Смотрите также