I've been searching for hours, read http://php.net/manual/en/language.variables.variable.php with all comments but did not find a solution for my problem :(
There is a multi dimensional array, for example:
Array
(
[53] => Array
(
[59] => Array
(
[64] => Array
(
[65] => Array
(
)
[66] => Array
(
)
)
)
)
[67] => Array
(
)
[68] => Array
(
[69] => Array
(
)
)
)
I need to replace $foo[53][59][64][65] by another array. The "path" is available as string, i.e. "53.59.64.65" or "[53][59][64][65]".
What is the correct syntax to solve this issue?