Terminates execution of the script.If you want to avoid calling exit() in FastCGI as per the comments below, but really, positively want to exit cleanly
The exit() function in PHP is an inbuilt function which is used to output a message and terminate the current script. The exit() function only terminates the execution of the script. The shutdown functions and object destructors will always be executed even if exit() function is called.