I have an array in which I have stored a sorted set of dates, for example:
2000-12-27
2000-12-28
2000-12-28
2000-12-30
2000-12-30
2001-01-01
2001-01-01
2001-01-03
... etc
I want to build an array that hold the number of times each date occurs, fir example
2000-12-27,1
2000-12-28,2
2000-12-30,1
2001-01-01,2
2001,01-03,1
I tired using $newarray=array_count_values($myarray);
but I get the error "Warning: Can only count STRING and INTEGER values!"
So, is there a way to easily count the occurance of these dates?
Thanks for any help,
Basil