Write a program in PHP to print a table of a number?

devquora
devquora

Posted On: Jun 05, 2021

 

Related Questions

PHP Logical & Programming Interview Questions

Write a program in Php to check whether a number is prime or not?

The program in Php to check whether a number is prime or not is as follows : <?php function primeCheck($number){     if ($number == 1)     return 0;     for ($i =...

PHP Logical & Programming Interview Questions

Write a program to find no of days between two dates in Php?

The program to find no of days between two dates in PHP is as follows: Let the dates are 25-09-2020 and 31-01-2021 <?php   function dateDiffInDays($date1, $date2)  {   &nbs...

PHP Logical & Programming Interview Questions

Write a program in PHP to find the occurrence of a word in a string?

The program in PHP to find the occurrence of a word in a string is as follows: <?php $s1 = "interviewmocks.com is a interview prep site"; $s2 = "interview"; $res = substr_count($s1, $s2); echo...