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 are the new features available in php 7?
How can you send http header to the client in php?
What is parent __construct ();?
List data types in PHP?
Is php a cms?
How do you display the output directly to the browser?
What are the three parts of an http request?
What kind of things have you done on the social side?
Do you know what is the differences between $a != $B and $a !== $B?
Explain about getters and setters in php?
What is the use of strpos in php?
What is cms php?
How can I load data from a text file into a table?
What is difference between md5 and SHA256?
What does the scope of variables means?