Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the features of php?

989


What is a php object?

902


What are new features in php 7?

958


What is a class in php programing?

2512


What is strstr php?

925


Does strlen include null?

1027


Tell me what kind of things have you done on the social side?

925


What is urlencode and urldecode in php?

1060


What is Different between Joomla And Magento?

2768


Do I need apache for php?

1030


Is php easy language to learn?

1019


How to return ascii value of character in php?

1073


What is str_replace()?

972


Explain what are psrs? Choose 1 and briefly describe it?

900


Tell me how to find the position of the first occurrence of a substring in a string?

924