
/*$str 为输入、输出字符串变量*/ preg_match_all(‘/[\x{4e00}-\x{9fff}]+/u‘, $str, $matches); $str = join(‘‘, $matches[0]);
php正则字符串提取汉字
原文:https://www.cnblogs.com/qingsong/p/9250968.html
人吐槽 | 人点赞 |
/*$str 为输入、输出字符串变量*/ preg_match_all(‘/[\x{4e00}-\x{9fff}]+/u‘, $str, $matches); $str = join(‘‘, $matches[0]);
php正则字符串提取汉字
原文:https://www.cnblogs.com/qingsong/p/9250968.html
人吐槽 | 人点赞 |
发表评论