php 二维数组去重
function remove_duplicate($array){
$result=array();
foreach ($array as $key => $value) {
$has = false;
foreach($result as $val){
if($val['id']==$value['id']){
$has = true;
break;
}
}
if(!$has)
$result[]=$value;
}
return $result;
}