``
/**

  • [removeEmoji 移除enmoji表情]
  • @Author Jerry
  • @DateTime 2018-12-20T17:55:40+0800
  • @Example eg:
  • @param [type] $message [description]
  • @return [type] [description]
    */
    function removeEmoji($message) {
    $str = preg_replace_callback(

           '/./u',
           function (array $match) {
               return strlen($match[0]) >= 4 ? '' : $match[0];
           },
           $str);
    
    return $str;

}
``