php preg_match 过滤字符

$f = preg_match("/g3watches/",$date[0]['desc']);

if ($f='1') {
$this->error(L('不好意思,输入有误'));
exit;
}

原文地址:https://www.cnblogs.com/wesky/p/4712689.html