从数组中删除重复的对象?

Ema*_*sev 5 php arrays

我一直在使用array_unique从数组中删除重复值,但是当值是对象时它似乎不起作用 - stdClass的实例.