title: Getting SOAP data into php array
body: <p>I am very new to SOAP and struggling with this!</p>
  
  <p>I am calling for a SOAP response from an sql database</p>
  
  <pre><code>$client = new SoapClient("url......");
  $soapquery = array('CoCode' =&gt; $cocode, 'WAPassword' =&gt; $webpass, 'strSQL' =&gt; $sqlt);
  $soapresult = $client-&gt;SQL($soapquery);
  $balance = $soapresult-&gt;SQLResult;
  print_r($balance);
  </code></pre>
  
  <p>The result shows in Chrome as the value requested, but when inspecting the source it shows as an xml</p>
  
  <pre><code>&lt;NewDataSet&gt;
    &lt;Table&gt;
      &lt;TOTAL&gt;3348.1200&lt;/TOTAL&gt;
    &lt;/Table&gt;
  &lt;/NewDataSet&gt;
  </code></pre>
  
  <p>How can i get this information into either a PHP string or if i am calling more than one field into an array?</p>
  
  <p>Thanks in advance.</p>