Skip to content
On this page

Expressions: Exit

The exit expression is used to terminate the current script, optionally specifying an exit value that is returned to the execution environment.

exit;
exit(1);

The exit value must be a literal integer value in the range of 0 to 255, inclusive.

Licensed under either of the MIT License or the Apache License (Version 2.0), at your option.