[PHP] dynamically accessing arrays at variable indexes

2001-03-09 Thread Dale Robinson
Hi, I need to access array values at varying dimensions. What I want to do is something like this: $full_index = ["op"]["view"]; print ${"HTTP_GET_VARS" . $full_index}; but that doesnt work :( A messy solution would be: function return_array_value($index1, $index2) { if ($index2) {

Re: [PHP] dynamically accessing arrays at variable indexes

2001-03-09 Thread Richard Lynch
Newsgroups: php.general Sent: Friday, March 09, 2001 2:04 PM Subject: [PHP] dynamically accessing arrays at variable indexes Hi, I need to access array values at varying dimensions. What I want to do is something like this: $full_index = ["op"]["view"]; print $