array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'filteriterator.valid.php', 1 => 'FilterIterator::valid', 2 => 'Check whether the current element is valid', ), 'up' => array ( 0 => 'class.filteriterator.php', 1 => 'FilterIterator', ), 'prev' => array ( 0 => 'filteriterator.rewind.php', 1 => 'FilterIterator::rewind', ), 'next' => array ( 0 => 'class.globiterator.php', 1 => 'GlobIterator', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/filteriterator/valid.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

FilterIterator::valid

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

FilterIterator::validCheck whether the current element is valid

Beschreibung

public FilterIterator::valid(): bool

Checks whether the current element is valid.

Hinweis:

The standard implementation of this function will initially return false until the inner iterator is advanced to the first accepted element.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

true if the current element is valid, otherwise false