PHP: remove duplicate elements from a multi-dimensional array

This post is over 3 years old, so please keep in mind that some of its content might not be relevant anymore.

array_unique removes duplicate values from an array. Unfortunately it doesn't work with multi-dimensional arrays.

A quick workaround is to serializ[......]

Read more