Check if string contains word (not a sentence string)
This question already has an answer here:
$stringtocheck = "Schiphol-Almere C./Hilversum/Utrecht C.";
$searchfor = "Hilversum";
if (strpos($stringtocheck,$searchfor) !== false) {
echo 'true';
}
链接地址: http://www.djcxy.com/p/13128.html
上一篇: 匹配单词中的字母