MongoCommandCursor
PHP Manual

MongoCommandCursor::valid

(PECL mongo >=1.5.0)

MongoCommandCursor::validFetches a new result item, and returns whether it could

Description

public bool MongoCommandCursor::valid ( void )

Parameters

This function has no parameters.

Return Values

TRUE if a next item could be returned, and FALSE otherwise.


MongoCommandCursor
PHP Manual