Write a php code which could be used to generate random
numbers between 1 - 100 and display them on the screen.
Answer Posted / solutio magister
<?php
$n=10;//number_of_numbers_required_to_display
for($i=0;$i<$n;$i++)
{
echo rand(1,100)."<br>";
}
?>
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is include in php?
Why php is widely used?
What is php and why we use it?
What are the common uses of php?
Explain what is the static variable in function useful for?
Explain what are the different errors in php?
What is mysql_fetch_array?
Why session timeout is important?
Tell me what is htaccess?
How to pad an array with the same value multiple times?
What is final class and final method?
What is laravel php?
Code to open file download dialog in PHP?
What is the difference between laravel and php?
Tell me what are magic methods?