note 22687 added to language.variables.scope

From: Date: Wed, 26 Jun 2002 20:54:55 +0000
Subject: note 22687 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-32241@lists.php.net to get a copy of this message
Basicly what happens is this: $var t; function foo() { global $t; } is identical to: function foo() { $t=&$GLOBALS[t]; } which will answer the above argument becouse when you use $t=&$somelocal; you overwrite the first $t=&..... -- http://www.php.net/manual/en/language.variables.scope.php http://master.php.net/manage/user-notes.php?action=edit+22687 http://master.php.net/manage/user-notes.php?action=delete+22687 http://master.php.net/manage/user-notes.php?action=reject+22687

« previous php.notes (#32241) next »