MongoCursor::limit

(PECL mongo >=0.9.0)

MongoCursor::limitLimits the number of results returned

说锟斤拷

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

锟斤拷锟斤拷

num

The number of results to return.

锟斤拷锟斤拷值

Returns this cursor.

锟斤拷锟斤拷锟届常

Throws MongoCursorException if this cursor has started iterating.

锟轿硷拷