传递参数

wsk/addorder?goods=[{"gsn":802006,"number":1},{"gsn":103761,"number":3}]

错误:

$goods = $_GET['goods'];
print_r(json_decode($goods,true));

正确:

$goods = $_GET['goods'];
json = iconv('GBK','utf-8',$goods);
//$json = stripslashes($json);
$json = htmlspecialchars_decode($json);
print_r(json_decode($json,true));

最新文章

  1. [LeetCode] Kth Largest Element in an Array 数组中第k大的数字
  2. JS隐形数据类型转换注意事项
  3. PHP读取CSV文件把数据插入到数据库,本地没有问题,阿里云测试服务器不行
  4. [Node.js] 基于Socket.IO 的私聊
  5. 仅在TabControl中的Tab中添加右键菜单
  6. linux僵死进程的产生与避免
  7. 关于Memcache使用的工具类
  8. Spoj 7001 Visible Lattice Points 莫比乌斯,分块
  9. HDOJ 1334 Perfect Cubes(暴力)
  10. CrossBridge介绍
  11. 史上最全的AJAX
  12. 摘要算法---hashlib模块下MD5和SHA的使用
  13. tmux 后台训练
  14. Python_反射
  15. shell脚本中的逻辑判断 文件目录属性判断 if特殊用法 case判断
  16. 51Nod 1066:Bash游戏 (巴什博弈)
  17. 【K8S】K8S-网络模型、POD/RC/SVC YAML 语法官方文档
  18. HDU4472_Count
  19. 010-Shell 输入/输出重定向
  20. 钉钉开发笔记(六)使用Google浏览器做真机页面调试

热门文章

  1. [HDU1392]Surround the Trees
  2. 在iOS端如何使用Charles用作http调试
  3. iOS: 数据持久化方案
  4. EditText控件设置只读
  5. SoapUI Pro Project Solution Collection-Custom project and setup
  6. ios中输入框的父类--文本框,DataPick,pickerview
  7. Redis集群搭建(转自一菲聪天的“Windows下搭建Redis集群”)
  8. MDK-ARM输出HEX文件重命名设置
  9. IT? 挨踢
  10. U盘安装CentOS 7卡住在 mounting configuration file system