MongoCursor
PHP Manual

MongoCursor::limit

(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.


MongoCursor
PHP Manual