Php/docs/mongocursor.limit
来自菜鸟教程
MongoCursor::limit
(PECL mongo >=0.9.0)
MongoCursor::limit — Limits the number of results returned
说明
public MongoCursor::limit
( int $num
) : MongoCursor
参数
num
- The number of results to return.
返回值
Returns this cursor.
参见
- MongoDB core docs on » limit.
- MongoCursor::batchSize() - Limits the number of elements returned in one batch
- MongoCursor::skip() - Skips a number of results