<?php function printer() { $string = (yield 3); echo $string; } $printer = printer(); foreach($printer as $v) { var_dump($v); } $printer->next(); $printer->send('Hello world!'); ?>
You have javascript disabled. You will not be able to edit any code.