当前位置:Gxlcms > PHP教程 > u4effu539f这些请教如何转成汉字输出

u4effu539f这些请教如何转成汉字输出

时间:2021-07-01 10:21:17 帮助过:42人阅读

\u4eff\u539f这些请问怎么转成汉字输出
[{"id":"569","label":"iphone \u5165\u8033\u5f0f\u8033\u6a5f "},{"id":"568","label":"iPhone \u91dd (5\u652f)"},{"id":"567","label":"iphone \u91dd "},{"id":"12","label":"iphone5 \u4eff\u539f\u6578\u64da\u7dda \uff08NEW)"},{"id":"14","label":"iphone4 to iphone5 adapter \u8f49\u63a5\u982d (\u767d\u8272)"},{"id":"16","label":"iphone5 \u4eff\u539f\u6578\u64da\u7dda \uff08NEW)"},{"id":"19","label":"iphone5 \u4eff\u539f\u6578\u64da\u7dda \uff08NEW)"},{"id":"33","label":"iphone 4 \u7528\u81c2\u5e36 (\u9ed1\u8272\uff09"},{"id":"36","label":"iphone4 to iphone5 adapter \u8f49\u63a5\u982d (\u767d\u8272)"},{"id":"43","label":"iphone5 \u4eff\u539f\u6578\u64da\u7dda \uff08NEW)"}]

请问那些编码怎么转成汉字输出??

分享到:


------解决方案--------------------
$s='[{"id":"569","label":"iphone \u5165\u8033\u5f0f\u8033\u6a5f "},{"id":"568","label":"iPhone \u91dd (5\u652f)"},{"id":"567","label":"iphone \u91dd "},{"id":"12","label":"iphone5 \u4eff\u539f\u6578\u64da\u7dda \uff08NEW)"},{"id":"14","label":"iphone4 to iphone5 adapter \u8f49\u63a5\u982d (\u767d\u8272)"},{"id":"16","label":"iphone5 \u4eff\u539f\u6578\u64da\u7dda \uff08NEW)"},{"id":"19","label":"iphone5 \u4eff\u539f\u6578\u64da\u7dda \uff08NEW)"},{"id":"33","label":"iphone 4 \u7528\u81c2\u5e36 (\u9ed1\u8272\uff09"},{"id":"36","label":"iphone4 to iphone5 adapter \u8f49\u63a5\u982d (\u767d\u8272)"},{"id":"43","label":"iphone5 \u4eff\u539f\u6578\u64da\u7dda \uff08NEW)"}]';
print_r(json_decode($s,true));

Array
(
[0] => Array
(
[id] => 569
[label] => iphone 入耳式耳機
)

[1] => Array
(
[id] => 568
[label] => iPhone 針 (5支)

人气教程排行