title: foreach to get the array index results in PHP
body: <p>I got the following parameters as a response from SOAP client. But i only want few to show as a result. I am getting the results properly but its only for 1 vehicle and i have more than 1 vehicles. So i dont know how to loop to get the results.</p>
  
  <p>Output for 1 vehicle</p>
  
  <pre><code>array (size=5)
    'SchwackeCode' =&gt; int 10130969
    'WE_Number' =&gt; int 19373134
    'HSN' =&gt; string '0005' (length=4)
    'TSN' =&gt; string 'AMP' (length=3)
    'VIN' =&gt; string '12345678901472583' (length=17)
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>$client = new SoapClient($wsdl, $options);
  $result = $client-&gt;getVehicleValuation($params);    
  $return = array(
                                      'SchwackeCode' =&gt; $result-&gt;vehicle-&gt;SchwackeCode,
                                      'WE_Number'    =&gt; $result-&gt;vehicle-&gt;WE_Number,
                                      'HSN'          =&gt; $result-&gt;vehicle-&gt;HSN, 
                                      'TSN'          =&gt; $result-&gt;vehicle-&gt;TSN,
                                      'VIN'          =&gt; $result-&gt;vehicle-&gt;Ident_Number,
                                      'WE_Number'    =&gt; $result-&gt;vehicle-&gt;WE_Number                                       
                              );
  return $return;
  </code></pre>