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 do I know my xampp version?
What is artisan in php?
Tell me how to retrieve a cookie value?
How to call javascript function in php on button click?
am from coimbatore.am learning php&mysql. what will be the approx salary for me if i get a job in coimbatore.
What is the basic function to search files for lines (or other units of text) that contain a pattern.
What are the uses of php language?
Which is faster for or foreach php?
When is a conditional statement ended with endif?
Write a program to get lcm of two numbers using php?
What is the function file_get_contents() useful for?
What should we do to be able to export data into an excel file?
What is rest api in php?
Can we use session in mvc?
How do you display the output directly to the browser?