I have an array and i want to aggregate each word in it and count them, like so:
Array
(
[0] => Notice
[1] => co
[2] => co
[3] => Notice
[4] => co
[5] => co
[6] => sls
)
should look like this:
Array
(
[Notice] => 2
[co] => 4
[sls] => 1
)
what is a ggod way to do that?
thanks