<?php function foo(): Generator { $i = range('a', 'd'); $j = range('e', 'g'); foreach ([$i, $j] as $item) { yield from $item; } } var_dump(iterator_to_array(foo()));
You have javascript disabled. You will not be able to edit any code.