In PHP, Suppose in a string $str = "How are you";
"are" can be detected by strpos("are",$str);
How to retrieve that "w r y" is present in $str? ("WheRe are You")
I have tried the above. Using wildcard characters like * did not give me desired results..