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

<?php
$num = "";
for($i=1;$i<=9;$i++) {

$num .= $i;
if($i%3==0){
$num .="<br />";
}

}
echo $num;
?>

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain mail function in PHP with syntax?

1001


What is var_dump function in php?

1094


What is button in html?

960


Is it more secure to use cookies to transfer session ids?

965


Explain about require and include function?

990


What is the static variable in function useful for?

960


Does php has a future?

929


Why super () is used in java?

983


Is php a low level language?

971


How do I escape data before storing it into the database?

972


What is input sanitization in php?

968


What is str_replace()?

1016


Php error constants and their descriptions

1182


What is the function file_get_contents() usefull for?

960


Which is better python or php?

996