Sorry for the terrible title, best I could think of at the time! Say I have a 'path' array like so;
array('this', 'is', 'the', 'path')
What would be the most effective method to end up with the array below?
array(
'this' => array(
'is' => array(
'the' => array(
'path' => array()
)
)
)
)