- preg_match: documentation ( source)
- html_entity_decode: documentation ( source)
- iconv: documentation ( source)
<?php
$test = '中文网站100强';
$test1 = html_entity_decode($test);
$curloutput = iconv("gb2312", "utf8", $test1);
if (preg_match("/[\p{Han}]/simu", $curloutput)) {
echo 'Yay';
}