<?php header('Access-Control-Allow-Origin:*');
$a = explode(',','水,晶,水,组');
var_dump($a);exit;
$a="富培美家庭清洁超值组合之富培美水精灵*6盒(天蓝色/1000g/套)";
$b="20/30/40“百变伊人”黄水晶套组(黄色)";
$a1 = mexplode($a);
$b1 = mexplode($b);
$res = array_intersect($a1,$b1);
echo '相同汉字数:'.count($res).'<br>';
echo '它们是:'.join(',',$res);
function mexplode($str){
$find = "/[\x{4e00}-\x{9fa5}]/u";
preg_match_all($find, $str, $m);
return $m[0];
}