How to convert u4effu539f to Chinese character output-php Tutorial

Source: Internet
Author: User
How to convert u4effu539f to Chinese character output [{id: 569, label: iphone & nbsp; u5165u8033u5f0fu8033u6a5f & nbsp ;}, {id: 568, label: iPhone & nbsp; u91dd; (5u652f) },{ id: 567, label: iph \ u4eff \ u539f. how can I convert it to Chinese character output?
[{"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)"}]

How can I convert the codes into Chinese characters for output ??

Share:


------ Solution --------------------
$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] = & gt; 569
[Label] => iphone in-ear headphones
)

[1] => Array
(
[Id] = & gt; 568
[Label] => iPhone category (5)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.