Get root node of XML doc using simplexml

后端 未结 1 510
离开以前
离开以前 2020-11-29 11:15

Using simplexml_load_string() how do I get \"ForgotPassword\" from the following XML?


         


        
相关标签:
1条回答
  • 2020-11-29 11:46

    Are you wanting to get the name of the root node?

    $xml = simplexml_load_string($str);
    echo $xml->getName();
    
    0 讨论(0)
提交回复
热议问题