title: Processing multidimensional array - PHP
body: <p>I've got this cycle:</p>
  
  <pre><code>   $diffe = $differenz*7;  
      $diff = 0; 
      $n = 0;
      $an = $anzahl-1;
      $z = 0;
      $plus = $periode;
      $oarray = array();
      $sarray = array();
      $parray = array();
      $h = 0;
  
      while ($n &lt; $ortcount) {
      foreach ($ortearray as $o) {
      $oarray[] = $o;
      }
      $sarray[] = get_start_dates($star, $diff, $wochearray); 
      $diff += $diffe;
  
      while ($h &lt; $ortcount) {
      $helpingstring= join(";",$sarray[$h]);
      echo $h;
      $sarrayhelp = explode(";", $helpingstring);
  
      while ($z &lt; $an) {
  
      foreach ($sarrayhelp as $s) {         
      $parray[] = plustime($s, $plus);        
  
      }
      $plus = $plus+$periode;
      $z++;
  
      }
      $h++;
      }
  
      $n++;
  
      }
  </code></pre>
  
  <p>and need the following:</p>
  
  <p>every "subarray" of the multidimensional array "$sarray[]" should be  progressively processed by the 
  plustime() function and results should be saved to "$parray[]".</p>
  
  <p>At this time, only the first subarray of  "$sarray[]" is being processed. </p>
  
  <p>Any help would be greately appreciated. 
  Please help!</p>