How to intercept string and output json in PHP
DuDuDu
DuDuDu 2018-07-25 11:56:34
0
2
1234

360截图-1704279.jpg

php prints out the code in the picture below in the form of json:

{"title":"Our organization","des":"As The central organization of the association is responsible for uploading and distributing information.","url":"abc.com"},{"title":"Recruiting | This summer, let's pick up the association together!"....},{. ..}..}

I’m not familiar with how to operate, please give me some advice~

DuDuDu
DuDuDu

reply all(1)
代码输入中...

What do you mean, do you want to convert this code to json? PHP has a function json_encode that converts directly to json format

  • reply More than half of it is done. How to integrate the two arrays into one json? Array ( [0] => Our organization [1] => Recruiting [2] => Sister/brother, do you want something? ) Array ( [0] => As the central organization of the association [ 1] =>Are you ready to make your C-position debut? [2] => Let’s not talk secretly)
    DuDuDu author 2018-07-25 23:21:55
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template