title: How to read XML data from api request
body: <p>I am making a call to some url : <code>http://example.com/Service.asmx/getTodaysDiscussionForum</code> which is xml data please see screenshot :<img src="https://i.stack.imgur.com/Swn9X.gif" alt="enter image description here"></p>
  
  <pre><code>$response = file_get_contents('http://103.1.115.87:100/Service.asmx/getTodaysDiscussionForum');
  
  $response = new SimpleXMLElement($response);
  
  print_r($response);exit;
  </code></pre>
  
  <p>it display following output :</p>
  
  <pre><code>SimpleXMLElement Object ( 
           [Table1] =&gt; Array ( [0] =&gt; SimpleXMLElement Object ( 
                                        [Id] =&gt; 1210 [Title] =&gt; Test Discussion, Dont Reply [CreatedDate] =&gt; 4/25/2014 10:42:49 AM 
                                        [Status] =&gt; Not Sent ) 
                               [1] =&gt; SimpleXMLElement Object ( 
                                        [Id] =&gt; 1182 [Title] =&gt; Negotiation Skills discussion [CreatedDate] =&gt; 4/25/2014 7:47:51 AM 
                                        [Status] =&gt; Not Sent )
                             )  
                          )
  </code></pre>
  
  <p>How can I store each data in a variables ?</p>
  
  <p>I am new to this xml reading thanks in advance</p>