array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'iterator.valid.php', 1 => 'Iterator::valid', ), 'up' => array ( 0 => 'class.iterator.php', 1 => 'Iterator', ), 'prev' => array ( 0 => 'iterator.rewind.php', 1 => 'Iterator::rewind', ), 'next' => array ( 0 => 'class.iteratoraggregate.php', 1 => 'IteratorAggregate', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'pt_BR', 'path' => 'language/predefined/iterator/valid.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
Iterator::valid — Verifica se a posição atual é válida
Este método é chamado após Iterator::rewind() e Iterator::next() para verificar se a posição atual é válida.
Esta função não possui parâmetros.