I have string
$s = 'controller/front/home';
value
$v = "some value";
and array
$a = [];
What is the best way to make multidimensional array like that?
$a['controller']['front']['home'] = $v;
[edit]
I don't know how many parts (separated by /) string $s can have, so manual array building by exploded parts is the last option I would consider.