Ok I am trying to create a variable from the value of a variable plus some extra text tagged on the end of it.
So for example:
$test = '_over'; $$CONFIG['island'].$test = 'testing';
${$CONFIG['island'].$test} = 'testing';
echo "hawaii = $hawaii_over";
Why not just use an array for all of this? Almost every time variable variables are used, it's a workaround to just using arrays. I don't know why these even exist, honestly...
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php