search string in str php code example Example: php find string in string $pos = strpos("find the position of X in here", "X");