title: PHP SoapClient - Returning attribute values in a response
body: <p>I'm attempting to get values from a webservice.</p>
  
  <p>The responce is formated as..</p>
  
  <pre><code>&lt;campaign Id="200"&gt; &lt;name&gt; test &lt;/name&gt; &lt;/campaign&gt;
  </code></pre>
  
  <p>PHP Code </p>
  
  <pre><code>SoapClient( "WSDL");
  
  $return = $client-&gt;GetCampaigns('Username', 'Password' );
  </code></pre>
  
  <p>Yet when I attempt to access the return, I get just a stdClass with the name attribute..</p>
  
  <pre><code>  public 'Campaign' =&gt; 
  array
    0 =&gt; 
      object(stdClass)[46]
        public 'Name' =&gt; string 'chris test' (length=10)
  </code></pre>