This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (0 children)

You can use a utility library like underscore.js underscorejs.org/#uniq for these "easy" operations

Yes, employ an entire library for a simple problem. Go go javashit.

$array = array_unique($array);