How to recursively iterate through files in PHP?

后端 未结 7 1846
走了就别回头了
走了就别回头了 2021-02-12 16:47

I have set up a basic script that is posting an array of paths to find template files inside them; currently it\'s only searching two levels deep and I\'m having some troubles g

7条回答
  •  旧时难觅i
    2021-02-12 17:07

    Here is working code which scans given directory $dir and all of its sub directories to any levels and return list of html files and folders containing them.

    
    

提交回复
热议问题