$ pattern = '/([w]+)|(\u([w]{4}))/i';
preg_match_all($pattern, $name, $matches);
if (!empty( $matches))
{
$name = '';
for ($j = 0; $j < count($matches[0]); $j++)
{
$str = $matches[0][$j];
2, 2), 16, 10);
$code2 = base_convert(substr($str, 4), 16, 10);
$c = chr($code).chr($code2);
{
.= $str;
}
}
}
return $name;
}
http://www.bkjia.com/PHPjc/621666.html
www.bkjia.com
true
TechArticle