title: Using foreach parsing of stdClass Object data in php
body: <p>This is the results of a call to function using with a soap client function and no matter what I do, I can't seem to parse the results and get the list of SKUs out of the array.  </p>
  
  <pre class="lang-none prettyprint-override"><code>stdClass Object
  (
      [GetFilteredSkuListResult] =&gt; stdClass Object
      (
          [Status] =&gt; Success
          [MessageCode] =&gt; 0
          [ResultData] =&gt; stdClass Object
          (
              [string] =&gt; Array
              (
                  [0] =&gt; XYZ2802
                  [1] =&gt; XYZ2808
                  [2] =&gt; XYZ2850
                  [3] =&gt; XYZ2848
                  [4] =&gt; XYZ2846
              )
  
          )
  
      )
  
  )
  </code></pre>
  
  <p>I'm using this in PHP to parse the result but it's not echoing anything?</p>
  
  <pre><code>foreach ($result-&gt;GetFilteredSkuListResult-&gt;ResultData as $message) {
      echo $message-&gt;string;
  }
  </code></pre>