I've a tree-like structured array:
Array
(
[dir1] => Array
(
[file1] => ...
[dir2] => Array
(
[file1] => ...
[file2] => ...
)
)
)
I want to get a pathnames array:
Array
(
[file1] => ....
[dir2/file1] => ....
[dir2/file2] => ....
)
How could I do that? I've tried with lots of buggy loops and recursive functions, but I still don't know how to do it.