I want to be able to do the following:
$normal_array = array(); $array_of_arrayrefs = array(&$normal_array); // Here I want to access the $normal_array reference **as a reference**, // but that doesn't work obviously. How to do it? end($array_of_arrayrefs)["one"] = 1; // choking on this one print $normal_array["one"]; // should output 1
end()doesn’t return a reference of the last value, but rather the last value itself. Here is a workaround: