Tuesday, 9 December 2014

Convert XML Argument with PHP



i wanna ask something about converting XML Argument with PHP.


example: i have this XML data :



<Address>
<to>James</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Please check your mail.</body>
</Address>


and i want to use PHP to convert that XML argument string into this format:



Address
to: James
from: Jani
heading: Reminder
body: Please check your mail.


can someone help me? thx ya


No comments:

Post a Comment