function unicodeDecode($name){
$json = '{"str":"'.$name.'"}';
$arr = json_decode($json,true);
if(empty($arr)) return '';
return $arr['str'];
}
实测可用
本文作者:小欢
本文链接:php unicode转汉字 - https://blog.xh-ws.com/archives/unicode_to_chinese_character.html
版权声明:如无特别声明,本文即为原创文章,仅代表个人观点,版权归 小欢博客 所有,遵循知识共享署名-相同方式共享 4.0 国际许可协议。转载请注明出处!
最后一次更新于2020-04-29
0 条评论