#10020 [Opn->Bgs]: Variable variables
| From: | hholzgra@php.net | Date: | Mon, 30 Sep 2002 23:37:06 +0000 |
| Subject: | #10020 [Opn->Bgs]: Variable variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-20822@lists.php.net to get a copy of this message | ||
ID: 10020
Updated by: hholzgra@php.net
Reported By: kvdwalt@csir.co.za
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: nt
PHP Version: 3.0.16
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
the "variable variables" feature works on plain variable names only,
there is no array resolving done
$$t is equal to $GLOBALS[$t] here
and $GLOBALS["extractid[$i]"]
is not $GLOBALS["extractid"][$i]
Previous Comments:
------------------------------------------------------------------------
[2001-03-27 09:06:53] kvdwalt@csir.co.za
in html
vFormInnerHTML = vFormInnerHTML + '<INPUT TYPE=HIDDEN
NAME="extractid[]" VALUE='+el.value+'>';
in serverside PHP
for ($i=0;$i < count($extractid); $i++) {
$t = "extractid[".$i."]";
echo $t.'<br>';
echo $$t.'<br>'; //$$t is empty!!
echo $extractid[$i].'<br>';
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=10020&edit=1