Re: Variable variables into an array.
| From: | Richard Quadling | Date: | Wed, 11 Aug 2010 14:03:25 +0000 |
| Subject: | Re: Variable variables into an array. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307398@lists.php.net to get a copy of this message | ||
On 11 August 2010 13:58, Bob McConnell <rvm@cbord.com> wrote:
> 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
>
No.