Sort an array without rewriting a key

后端 未结 1 742
独厮守ぢ
独厮守ぢ 2021-01-25 16:31

I have an array which looks like this:

$arr = ( [0]=>Int(2)
         [1]=>Array( ....)
         [2]=>Array( ....)
         [3]=>Array( ....))
         


        
1条回答
  •  -上瘾入骨i
    2021-01-25 17:01

    just use uasort()

    http://php.net/manual/en/function.uasort.php

    0 讨论(0)
提交回复
热议问题