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

Explain me what is the importance of "method" attribute in a html form?

929


What is config file in php?

1024


What is rtrim php?

1016


How many different types of messages available in php?

1004


Is array function in php?

1021


Tell me how the result set of mysql be handled in php?

985


How many types of php frameworks are there?

921


Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?

1143


How to assigning a new character in a string?

1111


Do you know what does $globals means?

1036


How to pass variables by references?

999


Which are the best start and end tags to use?

999


How do I run a php file?

969


Who developed php?

991


What sized websites have you worked on in the past?

997