当前位置:网站首页>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
边栏推荐
- 0基础可以考CPDA数据分析师证书吗
- 万事有你 未来可期 | ONES 2022校园招聘正式开启
- Running error: unable to find or load the main class com xxx. Application
- Everything can be expected in the future | one 2022 campus recruitment officially opened
- 第二十四课 经典问题解析
- 九十八、freemarker框架报错 s.e.ErrorMvcAutoConfiguration$StaticView : Cannot render error page for request
- 远程桌面之终端服务器超出了最大允许连接数解决
- 栈和队列a
- 第二十六课 类的静态成员函数
- Idea code formatting plug-in save actions
猜你喜欢
宝塔面板命令行帮助教程(包含重置密码)
Force buckle - 1137 Nth teponacci number
IDEA 中 .properties文件的中文显示乱码问题的解决办法
Xinwangda announced that the price of battery products had been increased, and the investment of "weixiaoli" exceeded 1 billion
5-minute NLP: text to text transfer transformer (T5) unified text to text task model
The database navigator uses the default MySQL connection prompt: the server time zone value 'Ö Ð¹ ú±ê ×¼ ʱ ¼ ä’ is unrecognized or repres
Idea database navigator plug-in
论文解读(CGC)《CGC: Contrastive Graph Clustering for Community Detection and Tracking》
电脑系统卡如何解决?
Recommended programming AIDS: picture tool snipaste
随机推荐
How do programmers finalize nucleic acid statistics with 130 lines of code
On using go language to create websocket service
第二十三课 临时对象
Qt一个进程运行另一个进程
QT draw image
Introduction to metalama 4 Use fabric to manipulate items or namespaces
SQL 练习(一)
远程桌面之终端服务器超出了最大允许连接数解决
Qt进程间通信
亿级流量架构,服务器如何扩容?写得太好了!
论文解读(CGC)《CGC: Contrastive Graph Clustering for Community Detection and Tracking》
[wechat applet] Z-index is invalid
STM32控制步进电机(ULN2003+28byj)
网络信息安全之零信任
Tips for installing MySQL service in windows11: Install / Remove of the Service denied
STM32CubeProgrammer基础使用说明
uni-app 原生APP-云打包集成极光推送(JG-JPUSH)详细教程
航芯技术分享 | ACM32 MCU安全特性概述
AI 视频云 VS 窄带高清,谁是视频时代的宠儿
Idea database navigator plug-in