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 difference between mysql_fetch_array and mysql_fetch_assoc?
Why do we use csrf token?
What is php glob?
What percentage of websites use php?
for image work which library?
Which is better php or nodejs?
How to call a php function from html button?
How can we change the value of a constant?
can you give me an example code of calling java script function in php variable using AJAX.or with out ajax??????
Tell me what is the use of "enctype" attribute in a html form?
Explain the difference between require() and require_once()?
What are objects in php?
How we load all classes that placed in different directory in one php file , means how to do auto load classes.
Is php deprecated?
What is final class and final method?