Re: PHP 4.0 Bug #8860 Updated: variable array not working

From: Date: Tue, 23 Jan 2001 18:09:11 +0000
Subject: Re: PHP 4.0 Bug #8860 Updated: variable array not working
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-44841@lists.php.net to get a copy of this message
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

« previous php.dev (#44841) next »