PHP – Determining the Frequency of a String’s Appearance

The substr_count() function returns the number of times one string occurs within another. Its prototype follows: The following example determines the number of times an IT consultant uses various buzzwords in his presentation: This returns the following: ——————————————– The word Continue reading