Using the code in my previous post, I disabled the existing echos and tried this:
$selected_array='test_array';
echo("{${$selected_array}['first']}");
echo("{${$selected_array}['array2'][1]}");
?>
The output was
1b
As expected, so I can access the array I need based on the $selected_array var.
No comments:
Post a Comment