note 47895 deleted from language.functions by aidan

From: Date: Sun, 05 Dec 2004 15:45:23 +0000
Subject: note 47895 deleted from language.functions by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-81411@lists.php.net to get a copy of this message
Note Submitter: viv5tech at yahoo dot com ---- Inner function (thats declared inside some other outer function) has no access to outer function's variables. function bar() { function bar2() { echo $bar_name; } $bar_name = "Bar Name"; bar2(); } bar(); Now this will not print 'Bar Name'. So inner function (bar2) has no access to outer function's (bar) variable ($bar_name). ---- Reason: useless example

« previous php.notes (#81411) next »