How do I do this?
I use the following code to get position of the first occurrence (case insensitive) of $search within $space.
$word = stripos($space, $search);
However I would like to totally ignore some characters while matching and get the position of similar substrings within the search space. Suppose:
$space = "this is a string saying hello-world"; $search = "hello world";
I would like to have the position of "hello-world" returned even though the string searched was "hello world".
Anyone know how to do this?