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.

Answers were Sorted based on User's Feedback



Write a php code which could be used to generate random numbers between 1 - 100 and display them on..

Answer / laxmikant

echo rand(1,100);

Is This Answer Correct ?    29 Yes 0 No

Write a php code which could be used to generate random numbers between 1 - 100 and display them on..

Answer / 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

Write a php code which could be used to generate random numbers between 1 - 100 and display them on..

Answer / ashok

<?php
$n=10;//number_of_numbers_required_to_display
$num=rand(1,100);
for($i=0;$i<$n;$i++)
{
echo rand(1,100)."<BR>";
}
?>

Is This Answer Correct ?    9 Yes 1 No

Write a php code which could be used to generate random numbers between 1 - 100 and display them on..

Answer / 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

Write a php code which could be used to generate random numbers between 1 - 100 and display them on..

Answer / shankar

<?php
$n=10;//number_of_numbers_required_to_display

for($i=0;$i<$n;$i++){
$num=rand(1,100);
echo $num;?>
<br/>
<?php
}
?>

Is This Answer Correct ?    9 Yes 4 No

Write a php code which could be used to generate random numbers between 1 - 100 and display them on..

Answer / yatin

<?php
$n=100; //number_of_numbers_required_to_display

for($i=0;$i<$n;$i++)
{
$num=rand(1,100);
echo $num."<br>";}
?>

Is This Answer Correct ?    4 Yes 0 No

Write a php code which could be used to generate random numbers between 1 - 100 and display them on..

Answer / vipin gurjar

rand(1,100)

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More PHP Interview Questions

What is cookies? How to create cookies in php?

0 Answers  


How to set session.gc_divisor properly?

0 Answers  


How cookies are transported from servers to browsers?

0 Answers  


How to execute an sql query?

0 Answers  


What is the difference between static and dynamic websites?

0 Answers  


Echo is used to Display message on screen. Which is used with echo to not output the trailing newline?

0 Answers  


Whats the difference between include() and require()?

4 Answers  


Is it easy to learn wordpress?

0 Answers  


What does $globals means?

0 Answers  


Is salary fixed or variable cost?

0 Answers  


How to run the interactive php shell from the command line interface?

0 Answers  


What are the differences between mysqli_connect and mysqli_pconnect?

0 Answers  


Categories