|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-09-18 08:24 UTC] hholzgra@php.net
[2002-04-27 16:09 UTC] jimw@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
$dynvar = "GLOBALS[first][second]"; echo $$dynvar; result : nothing , no error and no output! for arrays stored in variables only to ways are working: $dynvar = "GLOBALS"; echo ${$dynvar[first][second]}; or more dynamic but more slower! $dynvar = "<"."?PHP echo \$GLOBALS[first][second]; ?".">"; eval $dynvar; you can use a variable to store instead of echo! I think this breaks the rules of assigning variable variables . It must be possible to store the complete call of the array in a variable. The Way implemented jet is not praktical!!!!! Real World Tested! There are so much postings in many Forums and Mailinglist with no suggestion . I can't understand this! So i must think this is a BUG! or was forgotten to realize!