php去掉数组中重复的值php

/ / 2023-04-22   阅读:2501
php去掉数组中重复的值...
function a_array_unique($array){
    $out = array();
    foreach ($array as $key=>$value) {
        if (!in_array($value, $out)){
            $out[$key] = $value;
        }
    }
return $out;
}


我要评论

昵称:
验证码:

最新评论

共0条 共0页 10条/页 首页 上一页 下一页 尾页
意见反馈