<?php function testGenerators() { foreach (array(1,2,3) as $num) { yield $num + 1; } } $test = testGenerators(); var_dump($test);
You have javascript disabled. You will not be able to edit any code.