你能告诉我如何使用strops
来查看字符串是否不包含两个特定单词中的任何一个吗?(?
和if
)
$phrase = “how to use strops?”
if(strpos($phrase, "?|if") === false) //Is there a way I can detect the presence of
{ //either words in a sentence using one line of code that has strpos
echo “neither word is found”;
}