I have multiple different db strings, one for example is:
"Apples,Apples,Apples,Oranges,Apples,Oranges"
I want to represent each string dynamically as:
"I have Apples and Oranges. There are 6 in total."
Another string might be:
"Apples,Apples,Apples,Apples";
Should say:
"I have Apples. There are 4 in total."
How would I script this in PHP? Ty for help!