Write a php code which could be used to generate random
numbers between 1 - 100 and display them on the screen.
Answer Posted / anjithkumar.garapati
<?php
$n=10;//number_of_numbers_required_to_display
$num=rand(1,100);
for($i=0;$i<n;$i++){
echo $num;}
?>
Is This Answer Correct ? | 25 Yes | 14 No |
Post New Answer View All Answers
Which framework is best for php development?
What are the main error types in php?
How to fix "headers already sent" error in php
How to create connection in php?
What is the purpose of break and continue statement?
Is php a float?
What is "print" in php?
Is php a programming language?
What are the different types of array in php?
What is the differences between $a != $B and $a !== $B?
What is if isset ($_ post submit )) in php?
Why is overriding runtime?
How do I check environment variables?
Tell us what is the difference between session_unregister() and session_unset()?
How to remove duplicate values from a PHP Array?