title: matching two dimensional array
body: <p>Guys , I'm trying match two dimensional array. This is the code which demonstrates what I'm doing:</p>
  
  <pre><code>$games = array("Game1" =&gt; "Team 2 vs. Team 3", "Game2" =&gt; "Team 1 vs. Win 1","Game3" =&gt; "Loser Game 1 vs. Loser Game 2","Game4" =&gt; "Win Game 2 vs. Win Game 3", "Game5" =&gt; "Win Game 4 vs. Loser Game 4 (If Loser 4 is First Loss)");
  
  $time= array("06:00 " =&gt; "06:30","06:30 " =&gt; " 07:00","07:00" =&gt; "07:30","07:30" =&gt;"08:00","08:00" =&gt; "08:30");
  
  foreach($games as $games =&gt; $versus)
  {
     foreach($time as $start_time =&gt; $end_time)
     {
        echo $games . ": ". $versus ." ". $start_time. " to " . $end_time . "&lt;br&gt;";
     }
  }
  </code></pre>
  
  <p>However, this outputs</p>
  
  <pre><code>Game1: Team 2 vs. Team 3 = 06:00 to 06:30
  Game1: Team 2 vs. Team 3 = 06:30 to 07:00
  Game1: Team 2 vs. Team 3 = 07:00 to 07:30
  Game1: Team 2 vs. Team 3 = 07:30 to 08:00
  Game1: Team 2 vs. Team 3 = 08:00 to 08:30
  Game2: Team 1 vs. Win 1 = 06:00 to 06:30
  Game2: Team 1 vs. Win 1 = 06:30 to 07:00
  Game2: Team 1 vs. Win 1 = 07:00 to 07:30
  Game2: Team 1 vs. Win 1 = 07:30 to 08:00
  Game2: Team 1 vs. Win 1 = 08:00 to 08:30
  Game3: Loser Game 1 vs. Loser Game 2 = 06:00 to 06:30
  Game3: Loser Game 1 vs. Loser Game 2 = 06:30 to 07:00
  Game3: Loser Game 1 vs. Loser Game 2 = 07:00 to 07:30
  Game3: Loser Game 1 vs. Loser Game 2 = 07:30 to 08:00
  Game3: Loser Game 1 vs. Loser Game 2 = 08:00 to 08:30
  Game4: Win Game 2 vs. Win Game 3 = 06:00 to 06:30
  Game4: Win Game 2 vs. Win Game 3 = 06:30 to 07:00
  Game4: Win Game 2 vs. Win Game 3 = 07:00 to 07:30
  Game4: Win Game 2 vs. Win Game 3 = 07:30 to 08:00
  Game4: Win Game 2 vs. Win Game 3 = 08:00 to 08:30
  Game5: Win Game 4 vs. Loser Game 4 (If Loser 4 is First Loss) = 06:00 to 06:30
  Game5: Win Game 4 vs. Loser Game 4 (If Loser 4 is First Loss) = 06:30 to 07:00
  Game5: Win Game 4 vs. Loser Game 4 (If Loser 4 is First Loss) = 07:00 to 07:30
  Game5: Win Game 4 vs. Loser Game 4 (If Loser 4 is First Loss) = 07:30 to 08:00
  Game5: Win Game 4 vs. Loser Game 4 (If Loser 4 is First Loss) = 08:00 to 08:30
  </code></pre>
  
  <p>and I want to display it like this instead</p>
  
  <pre><code>Game1: Team 2 vs. Team 3 06:00 to 06:30
  Game2: Team 1 vs. Win 1 06:30 to 07:00
  Game3: Loser Game 1 vs. Loser Game 2 07:00 to 07:30
  Game4: Win Game 2 vs. Win Game 3 = 07:30 to 08:00
  Game5: Win Game 4 vs. Loser Game 4 (If Loser 4 is First Loss) = 08:00 to 08:30
  </code></pre>
  
  <p>How I can solve this ? 
  Thank You in Advance who help to me..</p>