$patten='(^[chr(0xa1)-chr(0xff)]+$)';
$string="这是一个测试中国国家不中国";
if(preg_match($patten,$string)){
echo "这个一个全中文字符";}else{
echo "非纯中文字符串";}