PHP readdir() not returning files in alphabetical order

后端 未结 5 2100
感动是毒
感动是毒 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条回答
  •  情歌与酒
    2020-11-27 09:01

    There are a couple you can use:

    Alphabetical Sort:

    
    

    Reverse Alphabetical Sort:

    
    

提交回复
热议问题