");
for($r=1; $r<=$rows; $r++)
{
echo "
";
for ($c=1; $c<=$clms; $c++)
{
$product = $r*$c;
echo "$r * $c = $product | ";
//*We echo not $r*$c, but $product, after saying $product = $r*$c.
// because echo doesn't like to do calculations inside its ""'s.
}
echo "
";
}
echo ("");
?>