Log in / create account | Login with OpenID
DocForge
Programmer's Wiki

PHP/exit

From DocForge

< PHP

The language construct exit immediately terminates a running PHP script.

Syntax:

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

If a status string is passed to exit the script will output the message and then immediately stop. If a status integer is passed, the exit status number is returned (not output) when the script stops.

[edit] See Also

Do you have information or insights to contribute to this article? Please feel free to edit this page. Ask questions or contribute to the discussion on this article's talk page.