<?php
$arr = array(
245 => array(
'name'=>'李四',
'ege'=>20.0
),
265 => array(
'name'=>'张三',
'ege'=>23.0
)
);
function ege_sort($x , $y)
{
return ($x['ege'] < $y['ege']);
}
echo '<pre>'.print_r($arr,1).'</pre>';
uasort($arr,'ege_sort');
echo '<pre>'.print_r($arr,1).'</pre>';
?>