PHP returns multiple sets of json at the same time
iApp
iApp 2020-07-22 08:31:36
0
0
973

I recently want to develop a forum, so I will contact the posts (if 20 are refreshed each time), and then I have to return multiple sets of json data, so I encountered a problem.

I captured the following information:

{"list":[{"username":"\u661f\u51cc\u793e\u533a","img":"[28.jpg ,29.jpg,30.jpg]","title":"\u3010\u7f6e\u9876\u3011XL Html\u5f00\u53d1\u5c5e\u4e8e\u81ea\u5df1\u7684\u7f51\u7ad9\u6216APP","date" :"2021-01-01 00:00:00","jing":"1","tid":"87","plnumber":"13"},{"username":"\u81f4\u8f9e. ","img":"[]","title":"\u8fd9\u662f\u6807\u9898\u3002","date":"2020-07-19 23:42:37","jing":" 0","tid":"725","plnumber":"0"},{"username":"\u81f4\u8f9e.","img":"[]","title":"xbxh", "date":"2020-07-19 23:19:22","jing":"0","tid":"724","plnumber":"0"},{"username":"\u81f4 \u8f9e.","img":"[199.png,200.png,201.png]","title":"fuu","date":"2020-07-19 23:13:37", "jing":"0","tid":"723","plnumber":"0"},{"username":"\u81f4\u8f9e.","img":"[,,]"," title":"gjhfududyd","date":"2020-07-16 09:51:16","jing":"0","tid":"722","plnumber":"0"},{ "username":"\u81f4\u8f9e.","img":"[196.png,197.png]","title":"xgj","date":"2020-07-16 09:43: 16","jing":"0","tid":"721","plnumber":"0"},{"username":"\u7528\u6237424112","img":"[]"," title":"\u725b\u903c\u80cc","date":"2020-07-08 20:19:40","jing":"0","tid":"720","plnumber":" 0"},{"username":"\u7528\u6237424112","img":"[192.txt]","title":"\u554a","date":"2020-07-08 20:16 :30","jing":"0","tid":"719","plnumber":"0"},{"username":"\u7528\u6237424112","img":"[]", "title":"\u592a\u68d2\u4e86","date":"2020-07-08 20:15:28","jing":"0","tid":"718","plnumber": "0"}]}

#At the same time, I also want him to return data in this format.

Through querying the information, I only learned: json_encode() but it cannot meet the requirements.

Continuing on Baidu is either incomprehensible or ineffective.

iApp
iApp

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template