variable
| From: | Christopher Cheng | Date: | Sat, 12 Aug 2000 07:43:10 +0000 |
| Subject: | variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11355@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];
?>