update : 2015.11.03
php.shukuma.com

검색:
 
 
Limits the number of results returned

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.

참고