I have tried the strstr function.
It outputs from the string I am trying to match to the end of line
$var3 = strstr($sentence, $string);
where $sentence for example is abc def ghi def
and $string is def
echo $var3
def ghi def
I guess what I thinking is implement a loop with a counter
I'm just not quite sure how to start as it looks like I will have keep passing the output of the strstr function back into itself...
any suggestions....please.....