MongoCursor::valid

(PECL mongo >=0.9.0)

MongoCursor::validChecks if the cursor is reading a valid result

说明

public MongoCursor::valid ( ) : bool

参数

此函数没有参数。

返回值

true if the current result is not null, and false otherwise.

参见