php preg_match 过滤字符
$f = preg_match("/g3watches/",$date[0]['desc']);
if ($f='1') {
$this->error(L('不好意思,输入有误'));
exit;
}
$f = preg_match("/g3watches/",$date[0]['desc']);
if ($f='1') {
$this->error(L('不好意思,输入有误'));
exit;
}