我有这个数组:
Array
(
[0] => 0px 0px
[1] => -101px 0px
[2] => -205px -3px
[3] => 0px -77px
[4] => -100px -80px
[5] => -202px -80px
)
我想对它进行排序以便:
Array
(
[0] => -202px -80px
[1] => -100px -80px
[2] => 0px -77px
[3] => -205px -3px
[4] => -101px 0px
[5] => 0px 0px
)
根据我的研究,ksort()应该做的伎俩,但我有1。
有人可以告诉我我做错了什么。感谢