php 二維數組去重

1、簡單的二維數組去重php

<?php
$tmp = array();$result = array();foreach($aData as $key => $val){    $tmp[$key] = json_encode($val);}unset($val);$final = array_unique($tmp);foreach($final as $key => $val){    $result[$key] = json_decode($val, true);}
相關文章
相關標籤/搜索