title: How to make this forloop count from 1-8?
body: <p>I'm creating tables with 4 rows and 2 columns using this for loop:</p>
  
  <pre><code>   $row = 4; //Dynamic number for rows
     $col = 2; // Dynamic number for columns
  
  
     for($i=0;$i&lt;$row;$i++){
        for($j=0;$j&lt;$col;$j++){
          echo $i+$j.'&lt;/br&gt;';
        }
  
    }
  </code></pre>
  
  <p>However, I cannot seem to get it to output 1-8 in numbers sequentially.</p>
  
  <p>Would be grateful is someone knows how to do this?</p>
  
  <p>Cheers</p>
  
  <p>K</p>