IteratorIterator::valid

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

IteratorIterator::validChecks if the iterator is valid

說明

public IteratorIterator::valid(): bool

Checks if the iterator is valid.

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

Returns true if the iterator is valid, otherwise false

參見