Say I got one array:
array('apple', 'banana','apple','orange','orange','apple');
so i got 3 apples, 1 banana, 2 orange

I want to turn this into another array where the key is the fruit name, and the value is the number of times that fruit is in the first array

sth like: array('apple'=>3,'banana=>1,'orange'=>2)

make sense?