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
What is the best way to test the strpos() return value in php?
How to create database connection and query in php?
Is php fully object oriented?
What is the function in PHP do not return a timestamp?
How to test if a variable is an array?
Does cors prevent csrf?
What are the different loops in php?
What is faster?
Explain about a search-friendly site looks like?
What is the latest version of php?
What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?
What does a dependant variable mean?
What is the difference between for and foreach loop in php?
Can I use php in html?
How to call a php function from html button?