NoRewindIterator 只遍历一次
最后更新于:2022-04-02 02:26:48
[TOC]
## 实例
```
$iterator = new ArrayIterator(['PHP', 'Python', 'Go']);
$noIterator = new NoRewindIterator($iterator);
foreach ($noIterator as $item) {
echo $item.PHP_EOL;
}
// doesn't anything
foreach ($noIterator as $item) {
echo $item.PHP_EOL;
}
```
';