Re: [PHP] Converting string to array index

2011-11-05 Thread Bastien
On 2011-11-05, at 10:21 PM, Ethan Rosenberg wrote: > Dear list - > > I have an associative array that will return a string representing an array > index. I now need to convert this string into an actual array index. > > $test1 = array > ( > "e1" => "[4][7]", > "e2" => "[5][8]" > ); > > so.

[PHP] Converting string to array index

2011-11-05 Thread Ethan Rosenberg
Dear list - I have an associative array that will return a string representing an array index. I now need to convert this string into an actual array index. $test1 = array ( "e1" => "[4][7]", "e2" => "[5][8]" ); so.. $z = $test1['e1']; z has the value of [4][7]. I need to convert this strin