Write a PHP Program to Print Table of a Number.

Print Table of a Number Using PHP Program, How to Display Table Number in PHP, PHP Program Print Table Number

Exapmle :- Print Table of 2.

<?php 
define('a', 2); 
for($n=1; $n<=10; $n++) 
{ 
echo $n*a; 
echo '<br>'; 
} 
?>

Exapmle :- Print Table of 3.

<?php 
define('a', 3); 
for($n=1; $n<=10; $n++) 
{ 
echo $n*a; 
echo '<br>'; 
} 
?>

Exapmle :- Print Table of 4.

<?php 
define('a', 4); 
for($n=1; $n<=10; $n++) 
{ 
echo $n*a; 
echo '<br>'; 
} 
?>

Exapmle :- Print Table of 5.

<?php 
define('a', 2); 
for($n=1; $n<=10; $n++) 
{ 
echo $n*a; 
echo '<br>'; 
} 
?>