php unicode 转换成中文

把unicode 扔进josn里,再转成数组就变成中文了

$json = '{"str":"'.$unicode_str.'"}';
$arr = json_decode($json,true);
return $arr['str'];

posted on 2020-07-23 10:46  沉淀物  阅读(186)  评论(0编辑  收藏  举报

导航