Menu Riverview Church

EXIT

Output a message and terminate the current script

SYNTAX

exit ([ string $status ] ) : void
exit ( int $status ) : void

PARAMETERS

status

If status is a string, this function prints the status just before exiting.

If status is an integer, that value will be used as the exit status and not printed. Exit statuses should be in the range 0 to 254, the exit status 255 is reserved by PHP and shall not be used. The status 0 is used to terminate the program successfully.

RETURN

No value is returned.

EXAMPLES

VOID


STATUS | STRING

exit

STATUS | INT


1


PHP