标签:string ret filter trim cal pre callback ack reg
function filter_emoji_string($str){
$str = trim($str);
$str = preg_replace_callback(‘/./u‘,function (array $match) {return strlen($match[0]) >= 4 ? ‘‘ : $match[0];},$str);
return $str;
}
标签:string ret filter trim cal pre callback ack reg
原文地址:http://www.cnblogs.com/cbugs/p/6869217.html