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 features of php?
What is a php object?
What are new features in php 7?
What is a class in php programing?
What is strstr php?
Does strlen include null?
Tell me what kind of things have you done on the social side?
What is urlencode and urldecode in php?
What is Different between Joomla And Magento?
Do I need apache for php?
Is php easy language to learn?
How to return ascii value of character in php?
What is str_replace()?
Explain what are psrs? Choose 1 and briefly describe it?
Tell me how to find the position of the first occurrence of a substring in a string?