PHP die() Function

The die() function prints a message and exits the current script.

This language construct is equivalent to exit().

Example -

ParameterDescription
messageRequired. Specifies the message or status number to write before exiting the script. The status number will not be written to the output.