array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'infiniteiterator.next.php', 1 => 'InfiniteIterator::next', 2 => 'Moves the inner Iterator forward or rewinds it', ), 'up' => array ( 0 => 'class.infiniteiterator.php', 1 => 'InfiniteIterator', ), 'prev' => array ( 0 => 'infiniteiterator.construct.php', 1 => 'InfiniteIterator::__construct', ), 'next' => array ( 0 => 'class.iteratoriterator.php', 1 => 'IteratorIterator', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/infiniteiterator/next.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

InfiniteIterator::next

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

InfiniteIterator::nextMoves the inner Iterator forward or rewinds it

Beschreibung

public InfiniteIterator::next(): void

Moves the inner Iterator forward to its next element if there is one, otherwise rewinds the inner Iterator back to the beginning.

Hinweis:

Even an InfiniteIterator stops if its inner Iterator is empty.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Es wird kein Wert zurückgegeben.

Siehe auch