|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-01-23 09:57 UTC] wico at cnh dot nl
according to Zeev this should work:
$test = Array("one","two","three","four"); $var = 'test[2]'; echo $$var; /* should echo "three" */
But with it doesn't
Greetz,
Wico
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 20:00:01 2025 UTC |
ok and that isn;t working either... althoug i liked the first more (and still think it should be that way) so this doesn't work either: $three = "Grrrr"; echo "Test"; $test = Array("one","two","three","four"); $var = 'test[2]'; echo $$var; /* should echo "three" */