匹配中文

2016-11-24  本文已影响0人  EdisonDong
$content = 'fklsd 发的克里斯';
echo preg_match("/[\x{4e00}-\x{9fa5}]+/u", $content,$chinese) ? mb_substr($chinese[0],0,8,'utf-8'):'';
上一篇 下一篇

猜你喜欢

热点阅读