I want check whether particular string is present within string or not. And i want to get position matching.
For Eg:
$actual_string = "red";
$searching_string = "green red yellow";
As we know , above searching string "red" matches with actual string, and position matched is 7th(including space).
$output = 7;//red matched at 7th position
Is is possible to get above requirement? Please help