我想知道他们用来对数组进行排序的算法。$arr=数组(50,60,40,70,30);排序($arr);提前谢谢。
PHP使用Quicksort的实现。。你可以试试Quicksort。
注意:像大多数PHP排序函数一样,sort()使用了»Quicksort的实现。
来源:http://www.php.net/manual/en/function.sort.php
我想知道他们用来对数组进行排序的算法。$arr=数组(50,60,40,70,30);排序($arr);提前谢谢。
PHP使用Quicksort的实现。。你可以试试Quicksort。
注意:像大多数PHP排序函数一样,sort()使用了»Quicksort的实现。
来源:http://www.php.net/manual/en/function.sort.php