<?php function generate(){ if (rand(0,2)) yield 1; return 1; } foreach (generate() as $k) var_dump($k); ?>
You have javascript disabled. You will not be able to edit any code.