Am 27-Feb-2023 23:37:29 +0100 schrieb [email protected]:
> Hello,
>
> As I was reading https://kristoff.it/blog/zig-multi-sequence-for-loops/ I
> found a very nice trick which in PHP would be:
>
> foo: while ($i--) {
> if ($ % 2) break foo;
> }
>
> What do you think?
>
> Charlie
It looks interesting. But we already have goto, which could be used in this
case, too.
while ($i--) {
if ($i % 2) goto foo;
}
foo:
Unfortunately goto does not have a good image ;-)
Best regards
Christian
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php