11
I need to know how to group and add one array
, but I’m not finding out how to do.
$array = array("vermelho", "vermelho", "vermelho", "verde", "azul", "azul");
wanted a comeback like this
3
1
2
That is, it will group and add up the amount of equal items.
That’s exactly what Flavio, thank you!
– Thiago Bueno