karthikeyan_coder Posted April 19, 2006 Share Posted April 19, 2006 i have a script with thousands of lines. if one condition was met then it should point the end of the script lines. means... after metting the condition php will execute the codings like include('footer.php'); is it possible??? Link to comment https://forums.phpfreaks.com/topic/7873-statement-like-goto-is-available-in-php5/ Share on other sites More sharing options...
poirot Posted April 19, 2006 Share Posted April 19, 2006 Well, instead of doing this, you can abort script execution:[code]if (condition) { include 'footer.php'; die();}[/code] Link to comment https://forums.phpfreaks.com/topic/7873-statement-like-goto-is-available-in-php5/#findComment-28697 Share on other sites More sharing options...
karthikeyan_coder Posted April 19, 2006 Author Share Posted April 19, 2006 Ahh Smart Idea. :) Link to comment https://forums.phpfreaks.com/topic/7873-statement-like-goto-is-available-in-php5/#findComment-28721 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.