袁来如此的工作笔记
竹杖芒鞋轻胜马,谁怕? 一蓑烟雨任平生。

PHP顺序排序算法代码

647浏览量
//顺序排序 function shunxu($arr) { $count = count($arr); for($i=0; $i<$count-1; ++$i) { $p = $i; for($j=$i+1; $j<$count; ++$j) { $p = $arr[$p] > $arr[$j]