PHP exit() Function
Example
Output a message and exit the current script:
Definition and Usage
The exit() function outputs a message and exits the current script.
This function is an alias of the die() function.
Syntax
exit(
message
)
| Parameters | Description |
|---|---|
| message | Required. Specifies the message or status number to write before exiting the script. The status number is not written to the output. |
Technical Details
| Return Value: | No value is returned. |
|---|---|
| PHP Version: | 4+ |
PHP Misc Reference Manual