Array
(
[0] => 116
[1] => asdasd
[2] => 1
[3] => asdsadas
[4] => dasdasd
[5] => sadasdsad
[6] => asdasdasd
)
i want to convert this aaray in to xml
OK, but how is the XML to be displayed?
That is tags and attributes and nesting levels.
For example,
<?xml version="1.0" encoding="UTF-8"?>
<channel>
<item>116</item>
<item>asdasd</item>
<item>1</item>
...
</channel>
or
<?xml version="1.0" encoding="UTF-8"?>
<channel>
<item>
<firstno>116</firstno>
<sometag>asdasd</sometag>
<id>1</id>
...
</item>
</channel>
or
<?xml version="1.0" encoding="UTF-8"?>
<channel>
<item id="116" />
<item id="asdasd" />
<item id="1" />
...
</channel>
So many different things you can do. You must be more specific with your question.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.