for($x=1;$x<=10;$x++) { echo '<p>'.$a.' x '.$x.' = '.$a*$x.'<p>'; $resul = $a*$x; $arrayl[$x-1]=$resul; }