In php what function can I use to get a return of all substrings that appear >=13 times in a string? Can you provide example of how to use it? Cheers.
Example: I have a substring such as "rain in the same place, rain in the new place, rain in the old place". I would like to print out all of the substrings that appear 3 or more times in the string. The answer would give an array of array(rain, in, the, place)