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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.