scandir对数字和其他特殊字符后的下划线进行排序:如何按预期的方式对目录进行排序?
$files = scandir($dir);
…类型:
/first
/first/,om
/first/0go_for_it
/first/1oho
/first/2ond
/first/_des
/first/_des/go
/first/_des/start
/first/_mh
/first/klassen
/first/wow
你不能对它做任何事情,但是你可以使用你自己的算法对结果进行排序使用sort函数