Search Results
Validates the iterator NoRewindIterator::valid (PHP 5 >= 5.1.0, PHP 7, PHP 8) NoRewindIterator::valid — Validates the iterator
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
NoRewindIterator - This iterator cannot be rewound. And for the concrete method: NoRewindIterator::rewind () - Prevents the rewind operation on the inner iterator. This implies that the Iterator::rewind () method is not passed through to the inner iterator.
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::rewind — Prevents the rewind operation on the inner iterator NoRewindIterator::valid — Validates the iterator
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
The second loop does not output because the iterator is only used once, as it does not rewind.
Examples Example #1 NoRewindIterator::__construct () example The second loop does not output because the iterator is only used once, as it does not rewind.
