i wanted to covert array values into a multidimensional associative array. Array size can be dynamic.
Array to be converted:
Array
(
[0] => abc
[1] => 0
[2] => xyz
[3] => 0
)
Expected Output:
Array
(
[abc] => Array
(
[0] => Array
(
[xyz] => Array
(
[0] =>
)
)
)
)
Tried with popping first key, but that has no luck...