If you have a php string and want to count the number of occurrences of array values within that string how would you go about doing that?
I'm trying to find an answer but the only thing I can find is string in arrays which is the other way around and substr_count but you can only use a string as the needle not an array of values to look for?
I'm trying to find an answer but the only thing I can find is string in arrays which is the other way around and substr_count but you can only use a string as the needle not an array of values to look for?