Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Remove duplicates from array

$uniqueme = array();
foreach ($array as $key => $value) {
   $uniqueme[$value] = $key;
}
$final = array();
foreach ($uniqueme as $key => $value) {
   $final[] = $key;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Remove #duplicates #array
ADD COMMENT
Topic
Name
7+8 =