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
What is static in php?
where do we use htaccess?
What is implode() in php?
Which function is used to read a file removing the html and php tags in it upwork?
How to do single and multi line comment in php?
Does php 7 support multiple inheritance?
What are the two types of variables?
What are super global variables in php?
What was the old name of php?
What is php and its features?
How do you identify independent and dependent variables in research?
How we load all classes that placed in different directory in one php file , means how to do auto load classes.
What is artisan in php?
What's the difference between __sleep and __wakeup?
Can I use php in html?