This is another function that I used to write as a subroutine in BASIC. I don't know if I call PHP a programming langue. I nishi day 14 with this function.
Finding the text within the sentence is a hand function. Like sort(), this function used to require people to write in the program.