What is the best way to achieve the following? I.e. building the array keys from another array dynamically?
$array = (
'key1',
'key2',
'key3'
);
Resulting in:: $arr['key1']['key2']['key3'] = array()/value;
So in other words the more values you add to $array (and or less) then the corresponding mulitidensional array is built up.
Thanks