<?php

	$totalRows = 5;
	$totalCols = 3;
	
	echo "<table>\n";
    for ( $row = 1; $row <= $totalRows; ++$row ) {
       echo '<tr>';
       for ( $col = 1; $col <= $totalCols; ++$col ) {
          echo '<td> linha '.$row.', coluna '.$col.'</td>';
       }
       echo "</tr>\n";
    }
    echo "</table>\n";

?>