if ( ord($str)>0xa0 )
echo '是中文字符';
else
echo '不是中文字符';
不管是在utf-8还是在gb2312编码的情况下都有效
posted on 2013-02-21 11:59 冯亮 阅读(248) 评论(0) 编辑 收藏 举报