note 1764 deleted from language.variables by irc-html

From: Date: Sat, 19 Jan 2002 18:46:17 +0000
Subject: note 1764 deleted from language.variables by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25168@lists.php.net to get a copy of this message
Not sure if you were referring to this but... If you declare a function within a function, the embedded function will not see the variables in the parent function, but the variables in the script as global. Example: <PRE> &lt;? $A = 1; function foo(){ $A = 2; function subfoo(){ global $A; echo $A; } } ?> </PRE> Will return 1.

« previous php.notes (#25168) next »