function array_sort($arr, $keys, $type = 'desc') {<br>
$keysvalue = $new_array = array();<br>
foreach ($arr as $k => $v) {<br>
$keysvalue[$k] = $v[$keys];<br>
}<br>
if ($type == 'asc') {<br>
asort($keysvalue);<br>
} else {<br>
arsort($keysvalue);<br>
}<br>
reset($keysvalue);<br>
foreach ($keysvalue as $k => $v) {<br>
$new_array[$k] = $arr[$k];<br>
}<br>
return $new_array;<br>
}
AD:真正免费,域名+虚机+企业邮箱=0元