- Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
- Parse error: syntax error, unexpected 'from' (T_STRING) in /in/2MdK1 on line 4
Process exited with code 255.
<?php
function first() {
yeild from another();
}
function another() {
yeild "test";
}
foreach (first() as $string) {
echo $string . "\n";
}