我需要检查一个字符串是否包含任何一个被禁止的单词.我的要求是:
stripos()
我尝试过类似下面的内容
$string = "poker park is great"; if (stripos($string, 'poker||casino') === false) { echo "banned words found"; } else { echo $string; }
php regex
php ×1
regex ×1