Hello students and dear programmers. Today’s script we are going to see how to generate a multiplication table using PHP script.
1 2 3 4 5 6 7 8 9 10 |
<?php $table_no = 7; $upto = 10; for($i=1; $i<=$upto; ++$i){ echo "$table_no * $i = ".$table_no * $i ."<br />"; } ?> |
The above script