So lets say I have the following array:
$value = 'x';
$foo = Array(
0 => 'arraydepth1',
1 => 'arraydepth2',
2 => 'arraydepth3',
3 => 'arraydepth4'
)
I need the values to be the keys, in order/depth, of the following array:
$bar['arraydepth1']['arraydepth2']['arraydepth3']['arraydepth4'] = 'x';