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 functions for imap?
Please explain is it possible to use com component in php?
How can php and javascript interact?
Which php framework is best for web development?
What is the functionality of md5 function in php?
Tell me what is the difference between unset() and unlink()?
What is factory pattern in php?
Where php basically used?
What are the three classes of errors that can occur in php?
Which will check if a function exists?
Explain me how failures in execution are handled with include() and require() functions?
What is php and why it is used?
What are the steps for the payment gateway processing?
Which operator is used to combine string values in php?
How many functions are there in php?