I have an array structure like the following:
Array
(
[0] => Array
(
[title] => Blue
[image] => catalog/Color/blue.png
)
[1] => Array
(
[title] => Black
[image] => catalog/Color/black.png
)
[2] => Array
(
[title] => Black
[image] => catalog/Color/black.png
)
)
What I want to do is to remove duplicate element from array. I have tried to use array_unique($myarray)
, but it seem not working.