variable
| From: | Christopher Cheng | Date: | Sun, 13 Aug 2000 17:19:41 +0000 |
| Subject: | variable | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-1997@lists.php.net to get a copy of this message | ||
Can I store the name of a particular element of an array to a variable so I
can reference to it?
The second one 456 doesn't seem to work.
<?
$a = "b";
$$a = 123;
echo $b;
$a = "b[0]";
$$a = 456;
echo $b[0];
?>