goto equivalent under PHP 5.2?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
permutations
Forum Commoner
Posts: 52
Joined: Sat Dec 07, 2002 11:45 am

goto equivalent under PHP 5.2?

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: goto equivalent under PHP 5.2?

Post by Benjamin »

You're doing it wrong. 8O There's certainly a better way. If you can post your code we can help you.
permutations
Forum Commoner
Posts: 52
Joined: Sat Dec 07, 2002 11:45 am

Re: goto equivalent under PHP 5.2?

Post by permutations »

I already wrote it another way. Not a big deal.
Post Reply