Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php remove duplicates from multidimensional array

$serialized = array_map('serialize', $targetArray);
$unique = array_unique($serialized);
return array_intersect_key($targetArray, $unique);
 
PREVIOUS NEXT
Tagged: #php #remove #duplicates #multidimensional #array
ADD COMMENT
Topic
Name
4+3 =