exit in php

If you want to finish executing the entire PHP script, you can use exit. This approach is typically useful when you are performing error checking The call to exit stops PHP from executing the remainder of the script