check if variable contains something php code example Example: php string contains $mystring = 'abc'; $findme = 'a'; $pos = strpos($mystring, $findme);