phpist

Untitled

Oct 22nd, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <?php
  2.  
  3. $rows = 10;
  4. $cols = 10;
  5.  
  6. echo '<table border="2">';
  7.  
  8. for ($tr=1; $tr<=$rows; $tr++){
  9. echo '<tr>';
  10. for ($td=1; $td<=$cols; $td++){
  11. echo '<td>'. $tr*$td .'</td>';
  12. }
  13. echo '</tr>';
  14. }
  15.  
  16. echo '</table>';
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment