猿问

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

{"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}]}


qq_翱翔_6
浏览 1123回答 1
1回答

鑫强

一共是两个函数 数组转json json_encode($array); json转数组 json_decode($array);
随时随地看视频慕课网APP
我要回答