- var_dump: documentation ( source)
<?php
// Everything you enter here will be executed by our servers. Try it!
$foo = function () {
$bar = (yield "foo");
var_dump($bar);
};
$c = $foo();
while ($c->valid()) {
var_dump($c->current());
$c->send("bar");
$c->next();
}