I am attempting to create a multi-dimentional array from a mutable strings using "." as a delimiter I have attempted to do explode using "." but this doesn’t give the outcome I am looking for
Input
file1
file1.file2
file1.file3
file1.file3.file4
file5
file5.file6
I am looking for an outcome of
array("file1" => array("0" => "file1", file1.file2 = array("0" => "File2"), array("file1.file3" => array("0" => "file3", "file1.file3.file4" => array("0" =>"file4")),"file5" => array("0"=>"file5", "file5.file6" => array("0" => "file6")));
if anyone is able to help I would be much appreciated
Cheers
Vip32