摘要: $json = '{"name":"fdipzone","date":"2016-10-10"}';$data = json_decode($json, true);$data['xxx'] = 'abc';//新增$data['name'] = 'abc';//改变值$data['date'] = 阅读全文
posted @ 2017-09-20 09:14 黑白配 阅读(699) 评论(0) 推荐(0)
摘要: $json = '[{"name":"fdipzone","date":"2016-10-10"},{"name":"fdipzone","date":"2016-10-10"}]';$data = json_decode($json, true);foreach($data as $key => 阅读全文
posted @ 2017-09-20 09:12 黑白配 阅读(726) 评论(0) 推荐(0)