Jump to content

Change page content?


rockinaway

Recommended Posts

Currently, in my files, I echo content through either a function called error() or a funtion called info().

 

Each function has 3 require statements for the header, body and footer files and that is all that is contained in the function.

 

What I want to do is, if error() is called, is kind of leave the script and exit it. Surprisingly I have used exit; at the end of the functions to stop any more of the script being executed.

 

Is this the best way of doing it?

Link to comment
https://forums.phpfreaks.com/topic/246987-change-page-content/
Share on other sites

Archived

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

×
×
  • Create New...

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.