Home >Backend Development >PHP Tutorial > 给个遍历的代码,该如何处理

给个遍历的代码,该如何处理

WBOY
WBOYOriginal
2016-06-13 12:46:55788browse

给个遍历的代码
求个代码:
遍历目录+目录下文件+所有子目录+所有子目录文件
按目录分组输出:
---目录
---文件1.后辍
---文件2.后辍

------子目录1
---------子子目录1
---------文件1.后辍
---------文件2.后辍

------文件1.后辍
------文件2.后辍

遍历 php
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn