Given that I have my array in this form:
$x = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h');
How can I get it in the following format?
Array
(
[h] => Array
(
[g] => Array
(
[f] => Array
(
[e] => Array
(
[d] => Array
(
[c] => Array
(
[b] => Array
(
[a] =>
)
)
)
)
)
)
)
}