RE: Variable variables into an array.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux