]>
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"][&qu
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) {
2 matches
Mail list logo