array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'iterator.rewind.php', 1 => 'Iterator::rewind', 2 => 'Rewind the Iterator to the first element', ), 'up' => array ( 0 => 'class.iterator.php', 1 => 'Iterator', ), 'prev' => array ( 0 => 'iterator.next.php', 1 => 'Iterator::next', ), 'next' => array ( 0 => 'iterator.valid.php', 1 => 'Iterator::valid', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/predefined/iterator/rewind.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 5, PHP 7, PHP 8)
Iterator::rewind — Rewind the Iterator to the first element
Rewinds back to the first element of the Iterator.
Зауваження:
This is the first method called when starting a foreach loop. It will not be executed after foreach loops.
У цієї функції немає параметрів.
Any returned value is ignored.