在php中json会默认把关联数组转为对象,代码为:
json_decode($json);
如果想把json转化为php数组格式,代码如下:
json_decode($json,true);
在php中json会默认把关联数组转为对象,代码为:
json_decode($json);
如果想把json转化为php数组格式,代码如下:
json_decode($json,true);
转载于:https://www.cnblogs.com/yubolin/p/5278465.html