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

Nitin


goto 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. :-)


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to