PHP JSON或数组到XML [英] PHP JSON or Array to XML

查看:189
本文介绍了PHP JSON或数组到XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉我采取了JSON或数组对象,并将其转换为XML的最简单方法。也许我期待在错误的地方,但我没有找到一个像样的答案,让我在轨道做。这是不是我会以某种方式建立自己?或者是有什么样json_en code / json_de code,将采取一个数组或JSON对象和UST弹出它作为一个XML对象?

Whats the easiest way to take a JSON or Array object and convert it to XML. Maybe I am looking in all the wrong places but I am not finding a decent answer to get me on track with doing it. Is this something I would have to somehow build myself? Or is there something like json_encode/json_decode that will take an array or json object and ust pop it out as a xml object?

推荐答案

在这里查看它:的如何数组转换为SimpleXML的

文档可以帮助你太

对于JSON来阵列,可以使用 json_de code 做同样的!

Regarding Json to Array, you can use json_decode to do the same!

这篇关于PHP JSON或数组到XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆