摘要: $str = "php编程"; if (preg_match("/^[\x{4e00}-\x{9fa5}]+$/u",$str)) { print("该字符串全部是中文"); } else { print("该字符串不全部是中文"); } 阅读全文
posted @ 2017-03-24 13:49 虚无缥缈的云 阅读(184) 评论(0) 推荐(0)