为了账号安全,请及时绑定邮箱和手机立即绑定

请问下php返回如下面格式的json格式怎样做呢

请问下php返回如下面格式的json格式怎样做呢

PHP
qq_翱翔_6 2016-12-13 16:10:28
{"rows":3,"code":"fc3d","info":"演示接口)","data":[{"expect":"2016340","opencode":"*,9,3","opentime":"2016-12-12 20:39:29","opentimestamp":1481546369},{"expect":"2016339","opencode":"*,6,2","opentime":"2016-12-11 20:39:19","opentimestamp":1481459959},{"expect":"2016338","opencode":"*,0,1","opentime":"2016-12-10 20:36:42","opentimestamp":1481373402}]}
查看完整描述

1 回答

已采纳
?
鑫强

TA贡献25条经验 获得超12个赞

一共是两个函数 数组转json json_encode($array); json转数组 json_decode($array);
查看完整回答
反对 回复 2016-12-13
  • 1 回答
  • 0 关注
  • 1122 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信