<div class="codetitle"> <span><a style="CURSOR: pointer" data="36326" class="copybut" id="copybut36326" onclick="doCopy('code36326')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code36326"> <br>$a=array('11','2','13','4','22'); <br>$num = count($a); <br>for($i=0;$ifor($j=0;$jif($a[$i]$temp = $a[$i]; <br>$a[$i]=$a[$j]; <br>$a[$j]=$temp; <br>} <br>} <br>} <br>print_r($a); <br> </div>