PHP readdir() not returning files in alphabetical order

后端 未结 5 2106
感动是毒
感动是毒 2020-11-27 08:46

I am reading through a directory with some pictures and such using a pretty simple implementation of readdir() like the following:

if ($handle = opendir($pat         


        
5条回答
  •  旧时难觅i
    2020-11-27 08:52

    i suppose docs are quite clear here.

    order in which they are stored in filesystem

    is not the same as alphabetic order

提交回复
热议问题