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
Explain me what is the importance of "method" attribute in a html form?
What is config file in php?
What is rtrim php?
How many different types of messages available in php?
Is array function in php?
Tell me how the result set of mysql be handled in php?
How many types of php frameworks are there?
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
How to assigning a new character in a string?
Do you know what does $globals means?
How to pass variables by references?
Which are the best start and end tags to use?
How do I run a php file?
Who developed php?
What sized websites have you worked on in the past?