Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

remove duplicate Array Multidimensi PHP

function _unique($array, $key) {
    $temp_array = array();
        foreach($array as $v) {
            if (!isset($temp_array[$v[$key]]))
            $temp_array[$v[$key]] = $v;
        }
    $array = array_values($temp_array);
    return $array;
}
Source by www.devtuwork.space #
 
PREVIOUS NEXT
Tagged: #remove #duplicate #Array #Multidimensi #PHP
ADD COMMENT
Topic
Name
1+3 =