note 12314 deleted from language.functions by googleguy
| From: | googleguy@php.net | Date: | Mon, 24 Aug 2015 09:58:10 +0000 |
| Subject: | note 12314 deleted from language.functions by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203423@lists.php.net to get a copy of this message | ||
Note Submitter: aboyd at ssti dot com
----
[Editor's note: put your includes in the beginning of your script. You can call an included
function, after it has been included --jeroen]
The documentation states: "In PHP 3, functions must be defined before they are referenced. No
such requirement exists in PHP 4."
I thought it wise to note here that there is in fact a limitation: you cannot bury your function in
an include() or require(). If the function is in an include()'d file, there is NO way to call
that function beforehand. The workaround is to put the function directly in the file that calls the
function.