Re: Labeled Break (nothing at all whatsoever to do with GOTO)
| From: | Hartmut Holzgraefe | Date: | Wed, 30 Nov 2005 09:39:59 +0000 |
| Subject: | Re: Labeled Break (nothing at all whatsoever to do with GOTO) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20889@lists.php.net to get a copy of this message | ||
Ron Korving wrote:
I loved Joao Cruz Morais idea of using the 'as' keyword in this: while (true) as outer_cycle { $i = 0; while (true)might become a bit confusing with foreach ($array as $val) as someloop { but that aside i like the syntax :) -- Hartmut Holzgraefe, Senior Support Engineer . MySQL AB, www.mysql.comif($i++ == 10) break outer_cycle;}