I'm doing a program that makes the multiplication table of 5 but I occupy that I display on the screen so at the time of putting echo does not let me print the characters throws me the numbers of 5 in 5 but does not throw me the characters of the echo are not due to
5 x 1 = 5 5 x 2 = 10 5 x 1 = 15
This is my code:
<?php
echo"<table BORDER='1'>";
echo"
<tr>
<td colspan=7 align=center> TABLA DEL 5</td>
</tr>
<td> 5 x 1 </td>
<td> 5 x 2</td>
<td> 5 x 3</td>
<td> 5 x 4</td>
<td> 5 x 5</td>
<td> 5 x 6</td>
<td> 5 x 7</td>
<td> 5 x 8</td>
<td> 5 x 9</td>
<td> 5 x 10</td>
</tr>
</table>";
$a=1;
$b=5;
$resultado;
for($i=1; $i<=10; $i++)
{
$resultado= $i * 5;
echo "Las tabla de multiplicar del 5 es " $b. ."*". $a. ".=." $resultado;
}
?>