I have a string like this:
$string = \'one/two/three/four\';
which I turn it into a array:
$keys = explode(\'/\', $string);
it's corny but:
function setValueByArrayKeys($array_keys, &$multi, $value) { $m = &$multi foreach ($array_keys as $k){ $m = &$m[$k]; } $m = $value; }