function ischinese($s){
if (preg_match('/^[\x{4e00}-\x{9fa5}]+$/u',$s)) {
print("中文");
} else {
print("不全部是中文");
}
}
PHP 判断中英文
猜你喜欢
转载自blog.csdn.net/qq_27702329/article/details/104840815
今日推荐
周排行