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.

�μ�