xiao Posted February 3, 2008 Share Posted February 3, 2008 Is there a way to jump (and skip all code between) to a specific place in a page? Without using If or break or something like that. Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted February 3, 2008 Share Posted February 3, 2008 Why would you want to avoid using an IF statement? Quote Link to comment Share on other sites More sharing options...
Aureole Posted February 3, 2008 Share Posted February 3, 2008 If only PHP had goto()... :D Quote Link to comment Share on other sites More sharing options...
xiao Posted February 3, 2008 Author Share Posted February 3, 2008 Cus in a big document, I'd have 10 IFs. And to have a nice overview, I'd also have 9 tabs before every line of code. If only PHP had goto()... :D Indeed, it would be much easier to catch errors. Quote Link to comment Share on other sites More sharing options...
Aureole Posted February 3, 2008 Share Posted February 3, 2008 Well if you're wanting something for error handling, there's always try & catch if you have PHP 5. Quote Link to comment Share on other sites More sharing options...
xiao Posted February 3, 2008 Author Share Posted February 3, 2008 I don't want that, it was just an argument Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.