//使用strpos()函数或者stripos()函数;前者大小写敏感,后者不区分大小写$str="hello word";$find="hello";if(strpos($str,$find)===false){ echo "不存在!";}else{ echo "存在!";}