<?php $strtest = “yyg中文字符yyg”; $pregstr = "/[\x{4e00}-\x{9fa5}]+/u"; if(preg_match($pregstr,$strtest,$matchArray)){ echo $matchArray[0]; } ?>
You have javascript disabled. You will not be able to edit any code.