//配列の順序サイズ
function ArrMax($data,$arrkey){
$tree = array();
foreach ($data as $key=>$val)
{
$pro[]=$val [ $arrkey];
}
array_multisort($pro,SORT_DESC);
for($j=0;$j
if($pro[$j]==$data[$i][$arrkey]){
$tree[$j] = $data[$i]
}
}
}
$tree を返す
}