Is there a way to convert a single dimensional array to a multidimensional array where the values of the single dimensional array become the keys to the multidimensional arrays? For example:
$array[1] = 'I';
$array[2] = "want";
$array[3] = "this";
$array[4] = "changed";
would become:
$array['I']['want']['this']['changed'] = '';
BTW, the depth of the resulting multidimensional array is arbitrary.
TIA.