Saturday, 17 November 2018

Print Table Program in PHP

The simple concept to generate table of any number is


<?php  

define('NUM', 3); 

for($i=1 ; $i<=10 ; $i++) 
{ 
  echo $i*NUM; 
  echo '<br>';   
}

?>

No comments:

Post a Comment

PHP - Functions

Its very easy to create your own PHP function. Suppose you want to create a PHP function which will simply write a simple message on your ...