diff --git a/language/functions.xml b/language/functions.xml index 1b01e16e30..6fcccae9af 100644 --- a/language/functions.xml +++ b/language/functions.xml @@ -1,5 +1,5 @@ - + Functions @@ -37,8 +37,78 @@ function foo ($arg_1, $arg_2, ..., $arg_n) In PHP 3, functions must be defined before they are referenced. No - such requirement exists in PHP 4. + such requirement exists in PHP 4. Except when + a function is conditionally defined such as shown in the two examples + below. + + When a function is defined in a conditional manner such as the two + examples shown. Its definition must be processed prior + to being called. + + Conditional functions + + +]]> + + + + Functions within functions + + +]]> + + + PHP does not support function overloading, nor is it possible to undefine or redefine previously-declared functions.