variable array name

From: Date: Thu, 29 Nov 2007 12:47:37 +0000
Subject: variable array name
Groups: php.general 
Request: Send a blank email to php-general+get-265216@lists.php.net to get a copy of this message
I seem to be having a problem in assigning a value to an array where the array is called dynamically. e.g. the physical name for the array is "my_array", so: my_array[1] = "test"; works fine. $array_name = "my_array"; $array_name[1] = "test"; does not work. I have tried $$array_name[1] = "test"; but to no avail. Any Ideas? Cheers, Mark

« previous php.general (#265216) next »