当前位置:网站首页>php生成json处理中文
php生成json处理中文
2022-04-23 12:27:00 【hai7425】
<?php
$arr = array('runoob' => '菜鸟教程', 'taobao' => '淘宝网');
echo json_encode($arr); // 编码中文
echo PHP_EOL; // 换行符
echo json_encode($arr, JSON_UNESCAPED_UNICODE); // 不编码中文
?>
版权声明
本文为[hai7425]所创,转载请带上原文链接,感谢
https://blog.csdn.net/hai7425/article/details/124358899
边栏推荐
- 软件测试基础DAY2-用例执行
- VMware virtual machines export hard disk vmdk files using esxi
- XinChaCha Trust SSL Organization Validated
- Lesson 23 temporary objects
- 31岁才转行程序员,目前34了,我来说说我的经历和一些感受吧...
- 欣旺达宣布电池产品涨价 此前获“蔚小理”投资超10亿
- Force buckle - 1137 Nth teponacci number
- How much does software testing help reduce program bugs?
- Debug Jest test cases in VSCode, debug Jest test cases in VSCode, middle note basedir=$(dirname "$" (echo "$0" sed -e -e, s, \ \, / "-e").
- S2-062 remote command execution vulnerability recurrence (cve-2021-31805)
猜你喜欢
IDEA 代码质量规范插件SonarLint
[unity note] basic lighting in l4unity
Idea database navigator plug-in
Next.js 静态数据生成以及服务端渲染的方式
C# F23. Stringsimilarity Library: String repeatability, text similarity, anti plagiarism
Next. JS static data generation and server-side rendering
STM32工程移植:不同型号芯片工程之间的移植:ZE到C8
Everything can be expected in the future | one 2022 campus recruitment officially opened
Qt双缓冲绘图
如何防止网站被黑客入侵篡改
随机推荐
【Redis 系列】redis 学习十三,Redis 常问简单面试题
【微信小程序】z-index失效
Number of nodes of complete binary tree
A graphic designer's fantasy world | ones characters
Lesson 23 temporary objects
网络信息安全之零信任
worder字体网页字体对照表
Lesson 24 analysis of classical problems
Idea database navigator plug-in
Outsourcing for five years, abandoned
I changed to a programmer at the age of 31. Now I'm 34. Let me talk about my experience and some feelings
一个平面设计师的异想世界|ONES 人物
程序员如何用130行代码敲定核酸统计
c# 设置logo图标和快捷方式的图标
QT redraw events and cuts
第二十四课 经典问题解析
NBIOT的AT指令
SQL 练习(一)
How to solve the computer system card?
Win10 splash screen after startup