I have an array of categories.
Array_Count_Values lists them with how many times they each appear within the array. I.E:
[Gas] => 1 [Electricity] => 4 [Car] => 3...
Essentially I want to output that, but process the string so that it says…
<a href=?cat=gas>gas</a>(1) ~ <a href=?cat=electricity>Electricity</a>(4) ~ ...etc
What would be the best way to do this?
Thanks!
I’m not sure I completely understand your question, but one solution for what you are literally asking: