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
What are the three parts of an http request?
What are helpers in php?
Is key in array php?
What is difference between action hook and filter hook?
What are the features and advantages of object-oriented programming in php?
What is inheritance in php with example?
Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?
Tell me what does the scope of variables means?
Why would we use === instead of ==?
What is the difference between "echo" and "print" in php?
What is a php web application?
What kind of things have you done on the social side?
How to break a file path name into parts?
Define metaphone()?
Is empty java?