PHP 4.0 Bug #8860 Updated: variable array not working

From: Date: Tue, 23 Jan 2001 14:59:43 +0000
Subject: PHP 4.0 Bug #8860 Updated: variable array not working
Groups: php.dev 
Request: Send a blank email to php-dev+get-44811@lists.php.net to get a copy of this message
ID: 8860 Updated by: cynic Reported By: wico@cnh.nl Old-Status: Open Status: Closed Bug Type: Scripting Engine problem Assigned To: Comments: no. it will echo contents of $three. if you don't have that variable in current scope, it'll echo null, and, depending on your settings, emit a warning. Previous Comments: --------------------------------------------------------------------------- [2001-01-23 09:57:18] wico@cnh.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 --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8860

« previous php.dev (#44811) next »