search

Home  >  Q&A  >  body text

How to intercept string and output json in PHP

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~

DuDuDuDuDuDu2318 days ago1213

reply all(2)I'll reply

  • 代码输入中...

    代码输入中...2018-07-25 21:29:13

    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
    0
  • DuDuDu

    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 · 2018-07-25 23:21:55
  • Cancelreply