RE: [PHP] Variable variables into an array.
| From: | Bob McConnell | Date: | Wed, 11 Aug 2010 12:58:30 +0000 |
| Subject: | RE: [PHP] Variable variables into an array. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307397@lists.php.net to get a copy of this message | ||
From: Richard Quadling
> Quick set of eyes needed to see what I've done wrong...
>
> The following is a reduced example ...
>
> <?php
> $Set = array();
> $Entry = 'Set[1]';
^^^^^^
Shouldn't that be $Set[1]?
> $Value = 'Assigned';
> $$Entry = $Value;
> print_r($Set);
> ?>
Bob McConnell