<?php function foo() { foreach ([] as $foo) { yield $foo; } } $iterator = new AppendIterator(); $iterator->append(foo()); iterator_to_array($iterator);
You have javascript disabled. You will not be able to edit any code.