DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
remove duplicates from array
$array = array(1, 2, 2, 3); $array = array_unique($array); // Array is now (1, 2, 3)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#remove
#duplicates
#array
ADD COMMENT
Topic
COMMENT
Name
1+2 =
Submit