且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将新数据添加到PHP JSON字符串

更新时间:2023-02-23 09:37:48

您需要先json_decode($data),然后添加新的键/值,然后json_encode().

you need to json_decode($data) first, then add the new key/value, and json_encode() it.