且构网

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

json_decode到数组

更新时间:2023-12-04 14:10:58

根据文档,您需要指定是否要关联数组而不是json_decode中的对象,这将是代码:

As per the documentation, you need to specify if you want an associative array instead of an object from json_decode, this would be the code:

json_decode($jsondata, true);