1、sort() 对数组升序排列。
2、rsort() 对数组进行降序排列。
3、asort() 根据关联数组的值,对数组进行升序排列。
4、ksort() 根据关联数组的键,对数组进行升序排列。
5、arsort() 根据关联数组的值 ,对数组进行降序排列。
6、krsort() 根据关联数组的键,对数组进行降序排列。
php数组排序
最新推荐文章于 2023-04-03 14:51:51 发布
1、sort() 对数组升序排列。
2、rsort() 对数组进行降序排列。
3、asort() 根据关联数组的值,对数组进行升序排列。
4、ksort() 根据关联数组的键,对数组进行升序排列。
5、arsort() 根据关联数组的值 ,对数组进行降序排列。
6、krsort() 根据关联数组的键,对数组进行降序排列。