note 22037 added to language.variables.variable

From: Date: Tue, 04 Jun 2002 15:34:10 +0000
Subject: note 22037 added to language.variables.variable
Groups: php.notes 
Request: Send a blank email to php-notes+get-31434@lists.php.net to get a copy of this message
/*The 'dollar dereferencing' (to coin a phrase) doesn't seem to be limited to two layers, even without curly braces. Observe:*/ $one = "two"; $two = "three"; $three = "four"; $four = "five"; echo $$$$one; //prints 'five'. /*This works for L-values as well. So the below works the same way:*/ $one = "two"; $$one = "three"; $$$one = "four"; $$$$one = "five"; echo $$$$one; //still prints 'five'. /*NOTE: PHP 4.2.1, Apache 2.0.36, Red Hat 7.2*/ -- http://www.php.net/manual/en/language.variables.variable.php http://master.php.net/manage/user-notes.php?action=edit+22037 http://master.php.net/manage/user-notes.php?action=delete+22037 http://master.php.net/manage/user-notes.php?action=reject+22037

« previous php.notes (#31434) next »