摘要: 1)utf-8的编码格式,匹配中文代码如下: <?php $str = "utf-8下匹配出中文字符串"; $preg = "/[\x{4e00}-\x{9fa5}]+/u"; if(preg_match_all($preg,$str,$matches)){ print_r($matches); } 阅读全文
posted @ 2020-05-29 11:53 搬砖小伙子 阅读(1487) 评论(0) 推荐(0) 编辑