如何在php中列出一个目录的所有子文件的路径列表


how to make the list of paths of all descender files of a directory in php?

请告诉我如何在php中列出一个目录的所有子代文件的路径,以便将它们复制到另一个目录?

您可以使用RecursiveDirectoryTerator

如果您想具体说明文件/目录名

,请使用glob