Hello all,
I have 6 numbers that are in an array. I need to know how many times each
number shows up in that array.
ex....
Numbers: 1,3,5,1,4,1
Output needed: (Not necessarily like this)
1 3
3 1
5 1
4 1
Can anyone help me with this? I looked in the manual, but couldn't find
anything that was quite what I needed. I have tried sorting then
array_count_values, but ended up with a result like this. Some results
have counts, some don't.
1
2 1
4 1
4
4 3
5 1
Thanks
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]