CachingIterator::valid
(PHP 5, PHP 7, PHP 8)
CachingIterator::valid — Check whether the current element is valid
Description
Checks whether the current element is valid.
A CachingIterator has no current element until
CachingIterator::rewind() is called, which
foreach does automatically.
Parameters
This function has no parameters.
See Also
- CachingIterator::hasNext() - Check whether the inner iterator has a valid next element
- CachingIterator::rewind() - Rewind the iterator
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
