Search Results
As its name implies, NoRewindIterator doesn't invoke the "rewind" method when It reaches the end of the iterator. Let's demonstrate it by two examles. In this example the "rewind" method will be invoked after when the "foreache" reaches its end, so, we can repeat printing the same values as many times as we want: <?PHP
NoRewindIterator::__construct — Construct a NoRewindIterator NoRewindIterator::current — Get the current value NoRewindIterator::key — Get the current key NoRewindIterator::next — Forward to the next element NoRewindIterator::rewind — Prevents the rewind operation on the inner iterator NoRewindIterator::valid — Validates the iterator
Construit un nouvel objet NoRewindIterator. Méthode PHP NoRewindIterator::__construct.
(PHP 5 >= 5.1.0, PHP 7, PHP 8) NoRewindIterator::__construct — Construct a NoRewindIterator
Table of Contents NoRewindIterator::__construct — Construct a NoRewindIterator NoRewindIterator::current — Get the current value NoRewindIterator::getInnerIterator — Get the inner iterator NoRewindIterator::key — Get the current key NoRewindIterator::next — Forward to the next element
NoRewindIterator::__construct — Construct a NoRewindIterator NoRewindIterator::current — Get the current value NoRewindIterator::key — Get the current key NoRewindIterator::next — Forward to the next element NoRewindIterator::rewind — Prevents the rewind operation on the inner iterator NoRewindIterator::valid — Validates the iterator
{"payload":{"allShortcutsEnabled":false,"fileTree":{"reference/spl/norewinditerator":{"items":[{"name":"construct.xml","path":"reference/spl/norewinditerator ...
