Sorting an array with DateTime strings?

后端 未结 6 1407
深忆病人
深忆病人 2021-01-20 03:57

How can i sort efficiently this array (recent items first) on end_time value in PHP?

array
  0 => 
    array
      \'value\' => int 4
             


        
6条回答
  •  梦谈多话
    2021-01-20 04:53

    Is this data coming from a database? If it is then the best approach is simply have the database do the sorting for you.

提交回复
热议问题