Print a message and exit the current script:
The exit() function prints a message and exits the current script.
This function is an alias of the die() function.
Parameter | Description |
---|---|
message | Required. Specifies the message or status number to write before exiting the script. The status number will not be written to the output. |
Return Value: | No value is returned |
---|---|
PHP Version: | 4+ |