<?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);
//$response = json_decode(json_encode($response), TRUE);
print_r($response);
- Output for 5.4.8 - 5.4.45, 5.5.24 - 5.5.26, 5.6.8 - 5.6.10, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- SimpleXMLElement Object
(
[SUCCESS] => true
[ERRORMESSAGE] => SimpleXMLElement Object
(
)
[TIMESTAMP] => 21/09/2015 03:26:37
)
- Output for 5.5.27 - 5.5.35, 5.6.11 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33
- SimpleXMLElement Object
(
[SUCCESS] => true
[ERRORMESSAGE] => SimpleXMLElement Object
(
[0] =>
)
[TIMESTAMP] => 21/09/2015 03:26:37
)
preferences:
168.3 ms | 403 KiB | 220 Q