thinkPHP like多个中文匹配查询

$arr = [];
foreach ($company_names_arr as $v){
    $arr[] = '%'.$v.'%';
}
$where['company_jiancheng|company_name'] = ['LIKE',$arr,'or'];

你可能感兴趣的:(php)