I know that:
$strchr(x,y) Finds the first occurrence of character y in string x.
$strrchr(x,y) Finds the last occurrence of character y in string x.
$strstr(x,y) Finds the first occurrence of string y in string x.
But is there anyway to return the second, third, and so on of THE OCCURRENCES OF STRINGS in a text??? I had been thinking of trimming all text before the first occurrence, and search the next one to find the second, and to trim the text until this, and search again to find the third, and so on...
But is there a way to do this directly???