json如何输出成excel
json内容如下:
[{"ZtdID":"100000","ZtdNo":"001 ","ZtdName":"1号店 ","Address":"XX市ZZ区YY路01号铺 ","Remark":"","AreaID":"01","ZtdTel":"0000-8888888","ZtdContact":"张三"},{"ZtdID":"100001","ZtdNo":"002 ","ZtdName":"1号店 ","Address":"XX市ZZ区YY路01号铺 ","Remark":"","AreaID":"01","ZtdTel":"0000-8888888","ZtdContact":"李三"}]
json解析并输出excel
------解决方案--------------------先格式化成数组,然后可以用一些生成excel的类来生成,比如http://code.google.com/p/php-excel/
------解决方案--------------------phpexcel 或者其他一些轻量级的插件 生成excel
------解决方案--------------------先把json转回成数据,json_decode
再生成excel,把数组中的输入放入