I have the following array:
$myArray = array(0=>'Zero',
1=>'One',
2=>'Two',
3=>'Three',
4=>'Four');
And i would like it in the following format:
$newArray = array('One'=>
array('Two'=>
array('three'=>
array('four'=>
array('five'=>
array())))));
This could be infinite levels although more realistically about 1-6 levels deep.