fork download
  1. <?php
  2. $xml = simplexml_load_string('<?xml version="1.0" encoding="UTF-8"?>
  3. <Website hasRead="true" hasWrite="true" key="managementui" terminalUserPin="" username="admin">
  4. <Section key="organisation">
  5. <Controller key="Sites">
  6. <Function hasRead="false" hasWrite="false" key="estateLayout"/>
  7. </Controller>
  8. </Section>
  9. <Section hasRead="false" hasWrite="false" key="settings"/>
  10. </Website>');
  11.  
  12. var_dump($xml['key']);
Success #stdin #stdout 0.01s 24448KB
stdin
Standard input is empty
stdout
object(SimpleXMLElement)#2 (1) {
  [0]=>
  string(12) "managementui"
}