I need to take a multidimensional array that defines a file tree structure and convert it to an array of relative paths. I see plenty of answers on how to do the opposite.
I need this:
$file_tree = [
'img',
'js' => [
'src',
'min',
'libraries' => ['jquery.js']
],
'src' => [
'controller' => ['user']
]
];
To become this:
$file_paths = ['img','js/src','js/min','js/libraries/jquery.js','src/controller/user']