If variable arrays should work, I would like the following behavior:

We have 

$three = "Grrrr";
$test[2] = "three";
$var = "test[2]";

I would like

echo $var to produce test[2]
echo $$var to produce three
echo $$$var to produce Grrrr

Anything else looks strange to me.

I don't care if it's impossible to get the contents of a variable
named $test[2] (not part of array $test), I wouldn't mind if
variable names like that were illegal.

Stig

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to