Jump to content

Archived

This topic is now archived and is closed to further replies.

karthikeyan_coder

Statement like GOTO is available in PHP5?

Recommended Posts

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???

Share this post


Link to post
Share on other sites
Well, instead of doing this, you can abort script execution:

[code]if (condition) {
   include 'footer.php';
   die();
}[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.