note 42064 added to language.variables
| From: | bryan8m at hotmail dot com | Date: | Sat, 01 May 2004 15:01:51 +0000 |
| Subject: | note 42064 added to language.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69076@lists.php.net to get a copy of this message | ||
How can I set the name of one variable as the value of another?
$A=2;
$B{$A}=3;
echo $B2;
That's my guess on how to do it but it isn't working.
What is the correct way to incorporate the value of one variable into the name of another variable?
----
Manual Page -- http://www.php.net/manual/en/language.variables.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42064
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42064&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42064&report=yes
Search -- http://master.php.net/manage/user-notes.php