Page 1 of 1

goto equivalent under PHP 5.2?

Posted: Fri Nov 05, 2010 3:18 pm
by permutations
I don't use goto statements very often, but I'm doing something a little complicated, and a goto statement would be the simplest solution. Unfortunately, my Web host is running PHP 5.2 and the goto statement is in 5.3. Is there anything resembling a goto in PHP 5.2?

Thanks in advance.

Re: goto equivalent under PHP 5.2?

Posted: Fri Nov 05, 2010 3:22 pm
by Benjamin
You're doing it wrong. 8O There's certainly a better way. If you can post your code we can help you.

Re: goto equivalent under PHP 5.2?

Posted: Fri Nov 05, 2010 3:46 pm
by permutations
I already wrote it another way. Not a big deal.