CachingIterator::current
(PHP 5, PHP 7, PHP 8)
CachingIterator::current — Return the current element
Description
Returns the current element.
As the CachingIterator is one element ahead of its inner iterator, this is the element that was stored when the iterator last moved, not the current element of the inner iterator.
Parameters
This function has no parameters.
See Also
- CachingIterator::key() - Return the key for the current element
- CachingIterator::valid() - Check whether the current element is valid
- Iterator::current() - Return the current element
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
