Display output of results of array in a list style format: PHP



How do I get an array of directories and their sub-directories where each contain file type extension: png. We should be able to output the results of the array in a list style format e.g.

* Test
-> test2.png
-> test1.png
* subfolder
-> test3.png
* sub sub folder
-> test4.png