<?php function foo($max) { $i = 0; while ($i <= $max) { yield $i; $i++; } } print_r(foo(9));
You have javascript disabled. You will not be able to edit any code.