Write a php code which could be used to generate random
numbers between 1 - 100 and display them on the screen.
Answer Posted / yatin
<?php
$n=100; //number_of_numbers_required_to_display
for($i=0;$i<$n;$i++)
{
$num=rand(1,100);
echo $num."<br>";}
?>
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Which PHP function would you use to send an email?
How many types of errors in php?
Is php faster than javascript?
Does php have block scope?
Explain the difference between require() and require_once()?
Name and explain five of the PHP error constants?
What exactly is validating and sanitizing?
Explain the difference between array_merge() and array_combine()?
What is polymorphism in oop php?
Can you convert php to html?
What is the use of trim function in php?
What is the difference between php traits vs interfaces?
Why do we use interface in php?
Explain Type juggling?
What is a php array?