Easy Tutorial
❮ Func Http Setcookie Php Unserialize Function ❯

PHP exit() Function

PHP Misc Reference Manual

Example

Outputs a message and exits 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

Parameter Description
message Required. Specifies the message or status code to write before exiting the script. Status codes are not written to the output.

Technical Details

Return Value: No return value.
PHP Version: 4+
--- ---
❮ Func Http Setcookie Php Unserialize Function ❯