php get stringposition code example Example: strpos $mystr = 'abc'; $findMe = 'a'; $position = strpos($mystr, $findMe);