title: PHP arrays, getting multi-dimensional data from for reach
body: <p>I've looked on stackoverflow for the answer, but no one explains it properly.</p>
  
  <p>I have a while loop that works:</p>
  
  <pre><code>info = array();
  while($get_info= mysql_fetch_array($info_result)){
      $info['team_id'] = $get_info['team_id'];
      $info['team_points'] = $get_info['team_points'];
  }
  </code></pre>
  
  <p>And when I print out the array:</p>
  
  <blockquote>
    <p>Array ( [team_id] => 26 [team_points] => 100 )</p>
  </blockquote>
  
  <p>But my foreach returns an invalid argument.</p>
  
  <pre><code>foreach ($info as $info_mation ){
      echo $info_mation['team_id'];
      echo $info_mation['team_points'];
      echo "&lt;br/&gt;";
  }
  </code></pre>
  
  <p>I've tried many different ways but nothing works.</p>
  
  <p>Thanks!</p>