MongoCursor::valid
(PECL mongo >=0.9.0)
MongoCursor::valid — Checks if the cursor is reading a valid result.
说明
public bool MongoCursor::valid
( void
)
返回值
TRUE
if the current result is not null, and FALSE
otherwise.
参见
- Iterator::valid() - 检查当前位置是否有效