标签:style blog color ar div log ad res
$username ="你好"; $pattern = ‘/^[\x{4e00}-\x{9fa5}]{2,20}$/u‘; $res = preg_match($pattern,$username); var_dump($res);
php 匹配中文(utf8),布布扣,bubuko.com
php 匹配中文(utf8)
原文地址:http://www.cnblogs.com/lxdd/p/3911313.html