【发布时间】:2011-04-19 02:58:39
【问题描述】:
可能重复:
Get the hierarchy of a directory with PHP
Getting the names of all files in a directory with PHP
我见过列出目录中的所有文件的功能,但是我怎样才能列出子目录中的所有文件,所以它返回一个数组喜欢吗?
$files = files("foldername");
所以$files 类似于
array("file.jpg", "blah.word", "name.fileext")
【问题讨论】: