$content = 'fklsd 发的克里斯';
echo preg_match("/[\x{4e00}-\x{9fa5}]+/u", $content,$chinese) ? mb_substr($chinese[0],0,8,'utf-8'):'';
$content = 'fklsd 发的克里斯';
echo preg_match("/[\x{4e00}-\x{9fa5}]+/u", $content,$chinese) ? mb_substr($chinese[0],0,8,'utf-8'):'';
本文标题:匹配中文
本文链接:https://www.haomeiwen.com/subject/jsnbpttx.html
网友评论