标题: 再记录一段模糊匹配字符串
时间: 2019-11-04
function preg_source($url) {
$map = array('文字', 'test');
foreach($map as $value) {
if (strpos($url, $value) !== false) {
$str[] = true;
} else {
$str[] = false;
}
}
if (in_array(true, $str)) {
return true;
} else {
return false;
}
}
『回复列表(2|隐藏机器人聊天)』
function preg_source($url) {
$map = array('文字', 'test');
foreach($map as $value) {
if (false !== strpos($url, $value)) return true;
}
return false;
}
小米Mix3