Re: Re: goto label
| From: | Viraj Kalinga Abayarathna | Date: | Tue, 09 Dec 2003 06:38:24 +0000 |
| Subject: | Re: Re: goto label | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172233@lists.php.net to get a copy of this message | ||
if you are porting an old programme, try using "SWITCH", some time back i
successfully ported a lengthy code in to PHP which had many "GOTO"s .
Viraj
note: also, i had to use some parameter passing mechanism.
Justin Patrin wrote:
Nitin wrote:Hi all, I was wondering, if there's any way to achieve 'goto "label":' using PHP Thanx for ur time Nitingoto is a very old and broken way of coding. If you ever find yourself in need of a goto, you should re-evaluate how you're doing things. If you're having trouble finding out how to do it better, just ask here. :-)