function xopa($name, $age){
yield $name();
yield $age();
};
$first = fn() => "opa";
$second = fn() => 23;
$cycle = foreach(xopa($first, $second) as $items){
echo $items;
}
function xopa($name, $age){
yield $name();
yield $age();
};
$first = fn() => "opa";
$second = fn() => 23;
$cycle = '';
foreach(xopa($first, $second) as $items){
$cycle .= $items . "\n";
}
echo $cycle;
$cycle = function($first, $second)
{
foreach(xopa($first, $second) as $items)
{
echo $items;
}
};
$cycle($first, $second);