I have an array like:
$indexes = array('a', 'b', 'c');
And a would like to convert it to an multidimensional array like:
$array['a']['b']['c']
The index quantity is dynamic, i can have 2, 3 or more.
I need to do this convertion and then assign a value to this index. Example:
$array['a']['b']['c'] = 'My value';
I tried a logic using array_keys() and array_flip(), but it doesn't work. Any help will be welcome.