I want to find the string from
$str = "Hello this is dummy.test. in this string
any character, any special character can appear. it is not a fixed type
text and predefined. this string will not read manually check by the
Programmer.Sorry for the bad English.";
my algo is fixed because some kind of problem. First I want to find the position of test keyword then want to go back from test to dummy keyword to find position of dummy keyword .
I also searched and also use the internet but no any function found in PHP which can traverse back in this way.
I also test strrpos()
but not relevant and required result.
Any solution please.
Output needed : dummy.test
Algo : find first right (test) and then right to left (dummy) only. not first right (test) and then from starting to left (dummy) .