php8.5
Home/ Manual/ spl / appenditerator/ AppendIterator::valid

AppendIterator::valid

PHP function Edit on GitHub ✎

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

Checks validity of the current element

Description

AppendIterator::valid(): bool

Checks validity of the current element.

Parameters Parameters

Return Values

Returns true if the current iteration is valid, false otherwise.

See Also

  • AppendIterator::current
  • AppendIterator::key
  • AppendIterator::next
  • AppendIterator::rewind

Source: reference/spl/appenditerator/valid.xml · from the official PHP manual (php/doc-en)