0

How can I get this value timestamp="1533209779825" from the XML string below using PHP

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<response>
    <status returnCode="SUCCESS" method="/testcustomer.xml" timestamp="1533209779825" messageArg="">Success</status>
</response>

When read using simplexml_load_string method, it instead returns

SimpleXMLElement Object ( [status] => Success)

Baguma
  • 173
  • 1
  • 2
  • 15

0 Answers0