RE: [PHP] Variable variables into an array.
[email protected] ("Bob McConnell")
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
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