<?php class IteratorIteratorEx { function rewind() { echo __METHOD__."\n"; IteratorIterator::rewind(); } } $it = new IteratorIteratorEx(new ArrayObject([4,5,6])); foreach($it as $v) { print_r($v); }
You have javascript disabled. You will not be able to edit any code.