<?php function xs() { for ($i = 0; $i < 5; $i++) { yield $i; } } $a = xs(); foreach($a as &$b) { echo $b.','; echo next($a).','; echo $b."\n"; }
You have javascript disabled. You will not be able to edit any code.