title: Object of class stdClass could not be converted to string in
body: <p>I am having a problem with PHP at the moment, I am getting this error,</p>
  
  <p>Object of class stdClass could not be converted to string the error occurs when I run this portion of code in my site,</p>
  
  <pre><code>&lt;?php
  //Setup
  $wsdl='https://api.netbiter.net/operation/v1/soap?wsdl';
  $client=new SoapClient ($wsdl);
  $accessKey='042B79FC23AB0925D4D20FBB8EE42B98';  //Replace by your access key
  $systemId='003011FB506F'; //Replace by your system id
  $parameterId='17379.0.44535'; //Replace by your data logging id
  $limitRows='24'; //How many hour data logging
  $sortOrder='desc'; //Order of the response list
  $startDate='2013-12-04T03:00:00Z'; //The UTC start date and time limit for the list
  $endDate='2013-12-05T03:00:00Z'; //The UTC end date and time limit for the list
  ?&gt;
  
  &lt;?php
  function handleArgosException(Exception $fault)
  {
     echo "Error: ";
     echo "Message: {$fault-&gt;faultstring} ";
     if (isset($fault-&gt;detail-&gt;ForbiddenException))
     {
        echo "Forbidden exception: Code {$fault-&gt;detail-&gt;ForbiddenException-&gt;code}";
     }
     else if (isset($fault-&gt;detail-&gt;LimitException))
     {
        echo "Limit exception: Code {$fault-&gt;detail-&gt;LimitException-&gt;code}";
     }
     else if (isset($fault-&gt;detail-&gt;GeneralException))
     {
        echo "General exception: Code {$fault-&gt;detail-&gt;GeneralException-&gt;code}";
     }
  }
  ?&gt;
  
  &lt;?php
  echo "&lt;h1&gt;Test Data Logging&lt;/h1&gt;";
  $param=array ('accessKey'=&gt;$accessKey, 'systemId'=&gt;$systemId, 'parameterId'=&gt;$parameterId,
                'limitRows'=&gt;$limitRows, 'sortOrder'=&gt;$sortOrder, 'startDate'=&gt;$startDate,
                'endDate'=&gt;$endDate);
  
  try
  {
     $resSystems = $client-&gt;getSystemHourAggregatedLoggedValues($param);
  }
  catch (SoapFault $fault)
  {
     handleArgosException($fault);
  }
  
  echo "&lt;h2&gt;Example code&lt;/h2&gt;";
  foreach($resSystems-&gt;HourAggregatedLogParameters as $label =&gt; $value)
  {
     echo "System $label : $value&lt;br /&gt;";
  }
  ?&gt;
  </code></pre>
  
  <p>The line in which the error is occuring is this one,</p>
  
  <pre><code>echo "System $label : $value&lt;br /&gt;";
  </code></pre>
  
  <p>I don't really now what this problem is, so any help would be great.</p>