note 20903 rejected from functions by sander

From: Date: Sun, 21 Apr 2002 17:08:53 +0000
Subject: note 20903 rejected from functions by sander
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-29643@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.

« previous php.notes (#29643) next »