//如果只想匹配中文,中文的ASI编码为[u4e00-u9fa5]
$str = preg_replace("/[\x{4e00}-\x{9fa5}]/iu","zh",$str); 

 

相关文章: