会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
盘思动
三思而后折腾!
博客园
首页
新随笔
联系
订阅
管理
2019年9月4日
正则匹配中文
摘要: $str = '中'; if (preg_match('/^[\x{4e00}-\x{9fa5}]+$/u',$str)){ echo '中文'; } else { echo 'no'; }
阅读全文
posted @ 2019-09-04 11:25 盘思动
阅读(394)
评论(0)
推荐(0)
编辑
公告