ID: 29068 Updated by: [EMAIL PROTECTED] Reported By: steffen dot moeller at med dot uni-rostock dot de -Status: Open +Status: Bogus Bug Type: Arrays related Operating System: Linux PHP Version: Irrelevant New Comment:
see http://php.net/variables.variable Previous Comments: ------------------------------------------------------------------------ [2004-07-09 01:01:04] steffen dot moeller at med dot uni-rostock dot de Description: ------------ $$c is an array $$c[0] is not defined ($$c)[0] is a syntax error There seems not way to directly access the content of a referenced array. My PHP version is 4.3.4-4 of Debian unstable Reproduce code: --------------- $tmp=array("hello world"); $c="tmp"; $a=$$c; # works echo $a[0]; # works echo ($$c)[0]; # should work echo {$$c}[0]; # would not mind if this was an alternative Expected result: ---------------- "tmp" Actual result: -------------- syntax error ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29068&edit=1