I am reading my css folder and received the below array.
Array
(
[FormValidation] => Array
(
[0] => formValidation.css
)
[0] => bootstrap-theme.css
[1] => bootstrap-theme.min.css
[2] => bootstrap.css
[3] => bootstrap.min.css
[4] => component.css
[5] => custom.css
[6] => custom_11_1_backup.css
[7] => datepicker.css
[8] => dropkick.css
[9] => easy-responsive-tabs.css
[10] => jquery.bootstrap-touchspin.css
[11] => jquery.fileupload.css
[12] => jquery.mCustomScrollbar.css
[13] => jquery.noty.css
[14] => noty_theme_default.css
[15] => owl.carousel.css
[16] => owl.theme.css
[17] => owl.theme.default.min.css
[18] => print_invoice.css
[slider] => Array
(
[0] => AjaxLoader.gif
[1] => owl.theme.css
)
[19] => validationEngine.jquery.css
)
Now I want these like in below format.
Array
(
[0] => Array
(
[path] => css/FormValidation/formValidation.css
[name] => formValidation.css
)
[1] => Array
(
[path] => css/bootstrap-theme.css
[name] => bootstrap-theme.css
)
)
I dont know how to handle the recursive array for the folders.