摘要: //gb2312的话preg_match_all("/[".chr(0xa1)."-".chr(0xff)."]+/", $str, $chinese);echo implode("", $chinese[0]);//utf-8的话preg_match_all("/[\x{4e00}-\x{9fa5}]+/u", $str, $chinese); 阅读全文
posted @ 2017-01-17 17:53 王滔 阅读(423) 评论(0) 推荐(0) 编辑