I have a multidimensional array where this works:
print_r( $temp[1][0] );
How can I make this work... I have the list of keys as a string like this:
$keys = "[1][0]";
I want to access the array using the string list of keys, how can it be done? This works but the keys are obviously hard coded:
$keys = "[1][0]";
$tempName = 'temp';
print_r( ${$tempName}[1][0] );
// tried lots of variations like, but they all produce errors or don't access the array
print_r( ${$tempName.${$keys}} );
Thanks, Chris