PHPTS:一键免费搭建 Nginx + PHP + MySQL 运行环境

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.

参见