My form's "Textarea" receives this data (exactly like this, scanned straight from the childrens toys ):
dog,white
cat,white
cat,black
cat,white
dog,black
bird,white
After clicking "submit," the desired result is a tidy list that has to look just like this:
bird: 1 white
cat: 2 white, 1 black
dog: 1 white, 1 black
Well, I've ruined all last weekend, all of monday, all of tuesday, and most of today trying to figure this out. The tricky parts for me is getting php to "keep count" like the cats (2 white, and 1 black). So therefore I humbly come to you all and ask for the code, which is probably a super-simple one-liner that will make me feel foolish Please help?