title: Help figuring out nested arrays from SOAP response?
body: <p>I am writing a little web app for ocean tides using PHP. I am having problems figuring out how to access the array returned (which PHP converted to a stdObject).</p>
  
  <p>The WSDL file is located at: <a href="http://opendap.co-ops.nos.noaa.gov/axis/webservices/highlowtidepred/wsdl/HighLowTidePred.wsdl" rel="nofollow">http://opendap.co-ops.nos.noaa.gov/axis/webservices/highlowtidepred/wsdl/HighLowTidePred.wsdl</a></p>
  
  <p>My PHP code is:</p>
  
  <pre><code>    $wsdl = "http://opendap.co-ops.nos.noaa.gov/axis/webservices/highlowtidepred/wsdl/HighLowTidePred.wsdl";
  
      $tides = new soapclient($wsdl);
  
      $tideParams = array(  
          'stationId' =&gt; '8454000',
          'beginDate' =&gt; '20110821 00:00',
          'endDate' =&gt; '20110821 23:59',
          'datum' =&gt; '0',
          'unit' =&gt; '0',
          'timeZone' =&gt; '0'
      );
  
      $tideRet = $tides-&gt;getHighLowTidePredictions($tideParams);
      var_dump($tideRet);
  </code></pre>
  
  <p>This dump returns:</p>
  
  <pre><code>   object(stdClass)#2 (1) {
        ["HighLowValues"]=&gt;
        object(stdClass)#3 (1) {
          ["item"]=&gt;
          object(stdClass)#4 (2) {
            ["data"]=&gt;
            array(4) {
              [0]=&gt;
              object(stdClass)#5 (3) {
                ["time"]=&gt;
                string(5) "00:35"
                ["pred"]=&gt;
                float(3.8)
                ["type"]=&gt;
                string(1) "H"
              }
              [1]=&gt;
              object(stdClass)#6 (3) {
                ["time"]=&gt;
                string(5) "05:45"
                ["pred"]=&gt;
                float(0.7)
                ["type"]=&gt;
                string(1) "L"
              }
              [2]=&gt;
              object(stdClass)#7 (3) {
                ["time"]=&gt;
                string(5) "12:49"
                ["pred"]=&gt;
                float(4.2)
                ["type"]=&gt;
                string(1) "H"
              }
              [3]=&gt;
               object(stdClass)#8 (3) {
                ["time"]=&gt;
                string(5) "18:32"
                ["pred"]=&gt;
                float(1.3)
                ["type"]=&gt;
                string(1) "L"
              }
            }
            ["date"]=&gt;
            string(10) "08/21/2011"
          }
        }
      }
  </code></pre>
  
  <p>I have no idea how to read into this and my googling hasn't helped much either. Any help or direction is appreciated.</p>