rewind
Iterator::rewind
Rewind the Iterator to the first element
ENTITY
public
void
Iterator::rewind
Rewinds back to the first element of the Iterator.
[!NOTE] This is the first method called when starting a ENTITY loop. It will not be executed after ENTITY loops.
As ENTITY always calls this method before starting iteration, manually advancing the iterator position (for example via SplFileObject::seek) will be reset.
To iterate without rewinding the iterator, wrap it in a
NoRewindIterator.
ENTITY ENTITY
ENTITY
Any returned value is ignored.
这篇文档对你有帮助吗?
谢谢你的反馈!