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 call a php function from another php file?
What language is php based on?
What is cookie in php with example?
What is php and its uses?
What is difference between require_once(), require(), include()?
What is an anti csrf token?
Who is the father of php and what is the current version of php and mysql?
How can I display text with a php script?
How to replace a substring in a given string in php?
Php says that an array is an ordered map. But how the values are ordered in an array?
Explain me the difference between include and require?
Which function can be used to delete a file?
Write down the code for saving an uploaded file in PHP.
What are computer variables?
What is the difference between null and empty?