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