title: Getting data from Soap response stdclass object in PHP
body: <p>I use following method to get webservice data,</p>
  
  <pre><code>$client = new SoapClient("http://empblr.dyndns.org/CentralHomeDelivery_Mob/Service.asmx?wsdl");
  
  
       $result = $client-&gt;GetAlladdress(array('customerid'=&gt;36));
  </code></pre>
  
  <p>When I var_dump $result I get,</p>
  
  <pre><code>object(stdClass)[16]
    public 'GetAlladdressResult' =&gt; 
      object(stdClass)[17]
        public 'schema' =&gt; string '&lt;xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet"&gt;&lt;xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"&gt;&lt;xs:complexType&gt;&lt;xs:choice minOccurs="0" maxOccurs="unbounded"&gt;&lt;xs:element name="Table"&gt;&lt;xs:complexType&gt;&lt;xs:sequence&gt;&lt;xs:element name="AdressID" type="xs:int" minOccurs="0"/&gt;&lt;xs:element name="CustomerID" type="xs:int" minOccurs="0"/&gt;&lt;xs:element name="LocationID" type="xs:int" minOccurs="0"/&gt;&lt;xs'... (length=1030)
        public 'any' =&gt; string '&lt;diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"&gt;&lt;NewDataSet xmlns=""&gt;&lt;Table diffgr:id="Table1" msdata:rowOrder="0"&gt;&lt;AdressID&gt;643&lt;/AdressID&gt;&lt;CustomerID&gt;36&lt;/CustomerID&gt;&lt;LocationID&gt;176&lt;/LocationID&gt;&lt;StreetName&gt;asdf&lt;/StreetName&gt;&lt;HouseNo&gt;1234&lt;/HouseNo&gt;&lt;AlternatePhone&gt;5632256&lt;/AlternatePhone&gt;&lt;LandMark&gt;asdf &lt;/LandMark&gt;&lt;MainLocID&gt;2&lt;/MainLocID&gt;&lt;locName&gt;ANDOLANA CIRCLE&lt;/locName&gt;&lt;MainLoc&gt;Mysore    &lt;/MainLoc&gt;&lt;/Table&gt;&lt;Table diffgr:id="Table2" m'... (length=1864)
  </code></pre>
  
  <p>How I can get the value from child node <code>&lt;CustomerID&gt;</code> and store into an array??</p>
  
  <p>Thank you..</p>