function isMatchEmoji($str)
    {
        $pattern='/./u';
        $rs=preg_match_all($pattern,$str,$match);
        if($rs>0){
            foreach($match[0] as $m){
                if(strlen($m) >= 4){
                    return true;
                }
            }            
        }
        return false;
    }
    
    $str='ko????????哈罗';
    $rs=isMatchEmoji($str);
    echo $rs?'have emoji':'not have emoji';

 

相关文章:

  • 2023-03-29
  • 2023-04-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-06-11
相关资源
相似解决方案