Write a php code which could be used to generate random
numbers between 1 - 100 and display them on the screen.
Answer Posted / shankar
<?php
$n=10;//number_of_numbers_required_to_display
for($i=0;$i<$n;$i++){
$num=rand(1,100);
echo $num;?>
<br/>
<?php
}
?>
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
How to create a directory?
How long is session timeout?
Are react hooks stable?
What is a static method php?
Is php a case sensitive language?
What do you mean by core php?
What is the importance of parser in php?
What are the rules for naming a php variable?
What is Apache's configuration file typically called?
Tell me what is the importance of "action" attribute in a html form?
When to use get and post request?
How is traits used in php?
What is the basic syntax of Php?
What are magic constants in php?
What is xss in php?