Saya baru-baru ini ingin membangunkan forum, jadi saya akan menghubungi siaran (jika 20 dimuat semula setiap kali), dan kemudian saya perlu mengembalikan beberapa set data json, jadi saya menghadapi masalah.
Saya menangkap maklumat berikut:
{"list":[{"username":"u661fu51ccu793eu533a","img":"[28.jpg,29.jpg,30.jpg]","title": " u3010u7f6eu9876u3011XL Htmlu5f00u53d1u5c5eu4e8eu81eau5df1u7684u7f51u7ad9u6216APP","tarikh":"2021-01-01, "pl":01, "pl." 3"},{"nama pengguna " :"u81f4u8f9e.","img":"[]","title":"u8fd9u662fu6807u9898u3002","date":"2020-07-19 23:42:37","jing":"0"," tid ":"725","plnumber":"0"},{"username":"u81f4u8f9e.","img":"[]","title":"xbxh","date":"2020- 07 -19 23:19:22","jing":"0","tid":"724","plnumber":"0"},{"username":"u81f4u8f9e.","img":" [ 199.png,200.png,201.png]","title":"fuu","date":"2020-07-19 23:13:37","jing":"0","tid " :"723","plnumber":"0"},{"username":"u81f4u8f9e.","img":"[,,]","title":"gjhfududyd","date":"2020 - 07-16 09:51:16","jing":"0","tid":"722","plnumber":"0"},{"username":"u81f4u8f9e.","img": " [196.png,197.png]","title":"xgj","tarikh":"2020-07-16 09:43:16","jing":"0","tid":" 721 ","plnumber":"0"},{"username":"u7528u6237424112","img":"[]","title":"u725bu903cu80cc","date":"2020-07-08 20: 19 :40","jing":"0","tid":"720","plnumber":"0"},{"username":"u7528u6237424112","img":"[192.txt]" , "title":"u554a","date":"2020-07-08 20:16:30","jing":"0","tid":"719","plnumber":"0"} , {"username":"u7528u6237424112","img":"[]","title":"u592au68d2u4e86","date":"2020-07-08 20:15:28","jing":"0 " ,"tid":"718","plnumber":"0"}]}
Pada masa yang sama, saya juga mahu dia memulangkan data dalam format ini.
Dengan menanyakan maklumat, saya hanya belajar: json_encode() tetapi ia tidak dapat memenuhi keperluan.
Jika anda meneruskan menggunakan Baidu, anda sama ada tidak dapat memahaminya atau tidak berkesan.