<?php function gen() { yield 1; yield 2; yield 3; } $times = 1; foreach(gen() as $g) { echo $times++; var_dump($g->getIterator()); }
You have javascript disabled. You will not be able to edit any code.