[英]Wrong specialchar order with scandir
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
您无法执行任何操作,但是可以使用uasort函数使用自己的算法对结果进行排序
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.