- simplexml_load_string: documentation ( source)
- print_r: documentation ( source)
<?php
$xml = '<?xml version="1.0" encoding="utf-8" ?>
<modifycontactrequest>
<usersignindetails>
<wxxclientnr>125</wxxclientnr>
<username>mla_vb_ph19</username>
<password>xs4manila</password>
<i64ipaddress>2130706433</i64ipaddress>
<PlatformId>11</PlatformId>
</usersignindetails>
<wxxdetails>
<wxxcustomerid>102005899</wxxcustomerid>
</wxxdetails>
<contact>
<name>hey hey hey re</name>
<username>hey hey hey re€</username>
<contacttype>2</contacttype>
</contact>
<originalcontactname>hey hey hey re€</originalcontactname>
<callingurl>/contacts/edit_contact</callingurl>
</modifycontactrequest>
';
$xml = simplexml_load_string($xml);
print_r($xml);