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

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

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is php a middleware?

1006


How many open modes available when a file open in PHP?

1210


What is boolean in php?

1038


What are the common uses of php?

1175


What is csrf token and how it works?

1049


What does the scope of variables mean?

1005


What is a string in r?

977


What is difference between put and post method in http?

1085


Is age interval or ordinal?

993


What is a session in php?

1057


Tell me how is it possible to parse a configuration file?

982


How can we enable error reporting in php?

1088


What is regular expression in php?

1057


Is php 5.6 secure?

1038


How can you declare the array in php?

1025