字符串 $str = "测试内容";
想要 得到结果 content LIKE '%测%' or content LIKE '%试%' content LIKE '%内%' or content LIKE '%容%'该怎么做,
想要 得到结果 content LIKE '%测%' or content LIKE '%试%' content LIKE '%内%' or content LIKE '%容%'该怎么做,
$ar = str_split($str, strlen('汉'));foreach($ar as &$v) $v = "content LIKE '%$v%'";
$s = join(' or ', $ar);echo $s;content LIKE '%测%' or content LIKE '%试%' or content LIKE '%内%' or content LIKE '%容%'