<?php function foo($data) { foreach ($data 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.