note 8657 deleted from Variable variables by jmcastagnetto

From: Date: Sat, 23 Sep 2000 12:20:27 +0000
Subject: note 8657 deleted from Variable variables by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-5356@lists.php.net to get a copy of this message
This is one thing that I have noticed that dosn't work quite the way it should: $x[5] = 'foo'; $y = 'x[5]'; $$y = 'bar'; printf("%s %sn",$x[5],$$y); The output will be 'foo bar' when it should be 'bar bar'. Is there a way to fix/get around this? Or am I wishing for the impossible?

« previous php.notes (#5356) next »