<?php $a = ['item', '2']; $b = (function () use ($a) { foreach ($a as $item) { yield $item; } })(); while ($b->valid()) { var_dump($b->current()); $b->next(); }
You have javascript disabled. You will not be able to edit any code.