MongoCursor::limit
(PECL mongo >=0.9.0)
MongoCursor::limit — 返す結果の数を制限する
説明
public MongoCursor::limit
( int $num
) : MongoCursor
パラメータ
num
- 返したい結果の数。
返り値
このカーソルを返します。
参考
- MongoDB コアドキュメントの » limit
- MongoCursor::batchSize() - Limits the number of elements returned in one batch
- MongoCursor::skip() - 結果をスキップする