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