I try to found a function which build a multidimensional array after an explode.
For example : Here I create array with as explode.
$str = 'root/foo/bar/file.jpg';
$ar = explode('/', $str);
$ar => array('root', 'foo' , 'bar', 'file.jpg');
Then I want this ouput :
array(3) {
['root']=>
['foo']=>
['bar']=> "file.jpg"
}
Any Idea ?
Thx