<? $string = "This is a strpos( ) test"; $pos = strpos($string, "This"); if ($pos = == false) { print "Not found\n"; } else { print "Found!\n"; } ?>