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 / ronak sharma

<?php
$count=0;
for($i=1;$i<=3;$i++)
{
for($j=1;$j<=3;$j++)
{
$count++;
echo $count;
}

echo "<br>";
}

?>

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stdclass in php?

905


What are the encryption functions available in PHP?

1063


Where is php code written?

934


What is $_ files in php?

1033


What are the different filter functions used to filter a variable?

919


How to make horizonatl menu and vertical menu responsive

2249


How can you tell if a number is even or odd without using any condition or loop?

944


How can you declare the array in php?

926


How we load all classes that placed in different directory in one php file , means how to do auto load classes.

935


Is php easier than node?

889


How can we determine whether a variable is set?

889


What are the ways to define a constant in php?

951


What is difference between mysql_fetch_array and mysql_fetch_assoc?

900


How is it possible to set an infinite execution time for php script?

925


What is artisan in php?

899