I have an array with these values.
$MyArray = array('2','4','4','4','2','2','0','0','0','0','4');
I want do an "array group by" (like in MySql) to only have one occurence of values. I expect something like this
$AnotherArray = array('2','4','0');