PHP reports – Functions and Logic – Die – All

    • The die() function prints a message and exits the current script. This function is an alias of the exit() function.



where message is a required parameter  to specify the message or status number to write before exiting the script. The status number will not be written to the output.