diff --git a/functions/misc.xml b/functions/misc.xml index 08c0cd53c2..394cb1b964 100644 --- a/functions/misc.xml +++ b/functions/misc.xml @@ -1,5 +1,5 @@ - + Miscellaneous functions Misc. @@ -239,6 +239,19 @@ if (defined("CONSTANT")){ // Note that it should be quoted + + + die + Alias of exit + + + Description + + This function is an alias of exit. + + + + eval @@ -304,30 +317,37 @@ This is a cup with my coffee in it. - - - - - exit - Output a message and terminate the current script - Description void exit - mixed status + string status + + + void exit + int status + + + This is not a real function, but a language construct. + + The exit function terminates execution of - the script. It has no return value, but will use - status as its exit status, as well as - printing it. + the script. It prints status just before exiting. - Also aliased as die. + If status is an integer, that value + will be used as exit-status. + + + The die function is an alias for + exit. + + <function>exit</function> example @@ -340,6 +360,7 @@ $file = fopen ($filename, 'r') ?> +