char in string php code example Example: strpos $mystr = 'abc'; $findMe = 'a'; $position = strpos($mystr, $findMe);