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 to print following number pattern:
123
456
789

Answer Posted / sheetal

<?php
$k=1;
while($k<9)
{
for($i=1;$i<=3;$i++)
{
echo $k;
$k++;
}
echo "</br>";
}
?>

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get a total number of elements used in the array?

994


What do you use php for?

1003


What are php keywords?

927


What is encapsulation in php?

980


Are sessions stateless?

906


Differentiate between php5 and php7?

1078


What is mysql_fetch_array?

1040


Do you know what does mvc stand for and what does each component do?

962


What are the advantages of stored procedures in php?

964


Why do we need session?

969


How to know user has read the email-php?

949


How many columns can be added in a table in mysql?

997


Can you define an array argument as a reference type?

920


How to open standard output as a file handle?

1180


What is mod_php?

1012