-
- The die() function prints a message and exits the current script. This function is an alias of the exit() function.
Syntax
die(message)
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.