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

Is null in php?

0 Answers  


What is the difference between explode and split?

0 Answers  


A process is identified by a unique___

0 Answers  


How to check an element is exists in array or not in php?

0 Answers  


Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.

0 Answers   Amazon, FGD,


What is $this in php?

0 Answers  


What is a role of a designer in web development. Till what level the designer will do his work. Does he gives the complete html file or the tpl file or he should also include the smarty tag in the tpl file.

1 Answers  


How to get a total number of rows available in the table?

0 Answers  


how to insert logout time when browser close

1 Answers   Global Softtech,


Make a "dynamic drop down list" with using only PHP,HTML and MySQL..

2 Answers  


How to remove duplicate values from php array?

0 Answers  


Hello Friends,I am seeking for a job in php having 2yrs. exp.Please suggest any company openings.

1 Answers  


Categories