- simplexml_load_string: documentation ( source)
- print_r: documentation ( source)
<?php
$xml = <<<xml
<?xml version="1.0" encoding="utf-8"?>
<RESPONSE>
<SUCCESS>true</SUCCESS>
<ERRORMESSAGE>
</ERRORMESSAGE>
<TIMESTAMP>21/09/2015 03:26:37</TIMESTAMP>
</RESPONSE>
xml;
$response = simplexml_load_string($xml);
print_r($response);