title: How to create an HTML table in a foreach loop
body: <p>I need to create an HTML table consisting of three columns: email, name, last name within my loop.</p>
  
  <p>Could anyone give a hint how I can start creating?</p>
  
  <pre><code>$i=0;
  foreach($result as $r) {
    echo "&lt;pre&gt;";
    print_r( $i ." ". $r['aluno_email'] ."". " | ". $r['aluno_nome']
  . " " .
  $r['aluno_sobrenome'] . " | ". strtolower(trim(($r['aluno_nome'])))."_".strtolower(trim($r['aluno_sobrenome'])));
     echo "&lt;pre&gt;";
      $i++;
  }
  </code></pre>