- preg_match: documentation ( source)
- html_entity_decode: documentation ( source)
<?php
$test = '中文网站100强';
$anchor = html_entity_decode($test, ENT_COMPAT, 'UTF-8');
if (preg_match("/[\p{Han}]/simu", $anchor)) {
echo 'Yay';
}
?>