note 20903 added to functions
| From: | php-general at lists dot php dot net | Date: | Sun, 21 Apr 2002 06:14:32 +0000 |
| Subject: | note 20903 added to functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29627@lists.php.net to get a copy of this message | ||
I have NOT been able to successfully get functions inside functions to work. Consider this:
function a() {
function b() {
}
}
a();
a();
The second call to a() produces an error that b() is being redeclared. You can nest a function but
you'd better not call the outer one more than once.
--
http://www.php.net/manual/en/functions.php
http://master.php.net/manage/user-notes.php?action=edit+20903
http://master.php.net/manage/user-notes.php?action=delete+20903
http://master.php.net/manage/user-notes.php?action=reject+20903