I am looking for a solution to count the number of occurrences of a string in an array. PHP has "array_count_values", did anyone make this available already for Arrays in MW?
[Apple, Pear, Apple, Banana] Apple = 2, Banana = 1, Pear = 1.
Thanks,
Best wishes,
Timo