Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 从 php 中某些扩展名过滤的目录中获取文件的最佳方法
我想在我的目录中创建所有 .txt 文件的文件名数组。
目录内容:-file1.txt-file2.txt-otherfile.php
示例数组: - files[1]file1.txt - files[2]file2.txt