1--TEST-- 2SPL: NoRewindIterator 3--FILE-- 4<?php 5 6echo "===Current===\n"; 7 8$it = new NoRewindIterator(new ArrayIterator(array(0 => 'A', 1 => 'B', 2 => 'C'))); 9 10echo $it->key() . '=>' . $it->current() . "\n"; 11 12echo "===Next===\n"; 13 14$it->next(); 15 16echo "===Foreach===\n"; 17 18foreach($it as $key=>$val) 19{ 20 echo "$key=>$val\n"; 21} 22 23?> 24===DONE=== 25<?php exit(0); ?> 26--EXPECT-- 27===Current=== 280=>A 29===Next=== 30===Foreach=== 311=>B 322=>C 33===DONE=== 34