//二维数组去掉重复值
public function a_array_unique($array){
$out = array();
foreach ($array as $key=>$value) {
if (!in_array($value, $out)){
$out[$key] = $value;
}
}
$out = array_values($out);
return $out;
}
转自:https://blog.csdn.net/qq_31648761/article/details/73740066