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 program to print
[123]
[456]
[789]
note : braces also need to be printed

Answer Posted / digambar kangude

$k=1;
for($i=1; $i<=3; $i++)
{
echo "[";
for($j=1;$j<=3;$j++)
{
echo $k;
$k++;
}
echo "]";
}

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is php better than java?

1030


What is form submission?

1049


Why we use get in php?

1038


Difference between $message vs. $$Message in php.

1044


What is php trait?

1033


How does cookies work in php?

1032


Tell me what is mean by an associative array?

1162


Explain about switch statement in PHP?

1069


How long is session timeout?

1051


What does $_env means?

985


How do I make a reset button in html?

1087


Explain me what is the difference between explode() and split() functions?

1162


How to find a substring from a given string in php?

1106


What is phpsessid?

1038


Why php is also called as scripting language?

1029