MongoCommandCursor::valid
(PECL mongo >=1.5.0)
MongoCommandCursor::valid — Checks if the cursor is reading a valid result.
Description
public bool MongoCommandCursor::valid
( void
)
Parameters
This function has no parameters.
Return Values
TRUE if the current result is not null, and FALSE otherwise.
See Also
- Iterator::valid() - Checks if current position is valid