note 95727 rejected from functions.user-defined by danbrown
| From: | danbrown@php.net | Date: | Mon, 18 Jan 2010 21:53:43 +0000 |
| Subject: | note 95727 rejected from functions.user-defined by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165091@lists.php.net to get a copy of this message | ||
Note Submitter: mheitm at gmail dot com
----
Note that in example #3 above you cannot call foo() again after the first time as the error
"Fatal error: Cannot redeclare bar() (previously declared in test.php:10) in test.php on line
10" will result, which really calls into question the idea of having functions within functions
since there is no local scope for these, as stated above.