This question already has an answer here:
- PHP JSON or Array to XML 3 answers
this response get in a one variable,how to convert JSON response in xml in php script
{
"data":[
{
"id":"15",
"color_code":"#D9DD29",
"font_color_code":"#ed1b1b",
"type":"Big Chunes",
"is_fade":"1",
"is_Active":"1",
"delay_time":"0"
},
{
"id":"58",
"color_code":"#19A87D",
"font_color_code":"#ffffff",
"type":"Demo",
"is_fade":"1",
"is_Active":"1",
"delay_time":"0"
}
]
}
</div>