php正则去掉字符串中非汉字字符串
$str='2016,北京欢迎您 from around you..'; preg_match_all('/[\x{4e00}-\x{9fff}]+/u', $str, $matches); $str = join('', $matches[0]); //输出 北京欢迎您
网页名称:php正则去掉字符串中非汉字字符串
文章分享:http://ybzwz.com/article/jjioig.html
$str='2016,北京欢迎您 from around you..'; preg_match_all('/[\x{4e00}-\x{9fff}]+/u', $str, $matches); $str = join('', $matches[0]); //输出 北京欢迎您