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