CachingIterator::next
(PHP 5, PHP 7, PHP 8)
CachingIterator::next — Move the iterator forward
Description
Moves the iterator forward.
If the inner iterator is valid, its current key and element become the
current key and element of the CachingIterator,
and are added to the cache if
CachingIterator::FULL_CACHE is set.
The inner iterator is then moved forward.
Otherwise, the CachingIterator is no longer valid.
Parameters
This function has no parameters.
Return Values
No value is returned.
See Also
- CachingIterator::rewind() - Rewind the iterator
- CachingIterator::hasNext() - Check whether the inner iterator has a valid next element
- CachingIterator::valid() - Check whether the current element is valid
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
