Iterator
PHP 手册

Iterator::valid

(No version information available, might be only in CVS)

Iterator::validChecks if current position is valid

说明

abstract public boolean Iterator::valid ( void )

This method is called after Iterator::rewind and Iterator::next to check if the current position is valid.

参数

This function has no parameters.

返回值

The return value will be casted to boolean and then evaluated. 如果成功则返回 TRUE,失败则返回 FALSE


Iterator
PHP 手册