|
exitOutput a message and terminate the current script Description
void exit
([ string
$status
] )
void exit
( int
$status
)Terminates execution of the script. Shutdown functions and object destructors will always be executed even if exit is called.
exit is a language construct and it can be called
without parentheses if no Parameters
Return ValuesNo value is returned. Examples
Example #1 exit example
<?php
Example #2 exit status example
<?php
Example #3 Shutdown functions and destructors run regardless
<?php The above example will output: Shutdown: shutdown() Destruct: Foo::__destruct() Notes
See Also
|