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. Link to comment https://forums.phpfreaks.com/topic/89246-go-to-place-in-page/ 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? Link to comment https://forums.phpfreaks.com/topic/89246-go-to-place-in-page/#findComment-456977 Share on other sites More sharing options...
Aureole Posted February 3, 2008 Share Posted February 3, 2008 If only PHP had goto()... :D Link to comment https://forums.phpfreaks.com/topic/89246-go-to-place-in-page/#findComment-456983 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. Link to comment https://forums.phpfreaks.com/topic/89246-go-to-place-in-page/#findComment-456984 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. Link to comment https://forums.phpfreaks.com/topic/89246-go-to-place-in-page/#findComment-456988 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 Link to comment https://forums.phpfreaks.com/topic/89246-go-to-place-in-page/#findComment-456990 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.