<?php function bar($x){ if($x){ yield 1; }else{ return 'a'; } } var_dump(bar(true)); var_dump(bar(false)->getReturn());
You have javascript disabled. You will not be able to edit any code.