json_encode() and json_decode(

json_encode() and json_decode(

1. The first is json_encode() which means to convert the data format of the object and array into data in json format.
Insert picture description here

two. The second is json_decode() to convert data in json format to objects, arrays, and to add true to arrays.
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45557228/article/details/109849566