php数组排序

1、sort() 对数组升序排列。
2、rsort() 对数组进行降序排列。
3、asort() 根据关联数组的值,对数组进行升序排列。
4、ksort() 根据关联数组的键,对数组进行升序排列。
5、arsort() 根据关联数组的值 ,对数组进行降序排列。
6、krsort() 根据关联数组的键,对数组进行降序排列。

原文地址:https://www.cnblogs.com/jiandanshishu/p/12953360.html