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
Is php better than java?
What is form submission?
Why we use get in php?
Difference between $message vs. $$Message in php.
What is php trait?
How does cookies work in php?
Tell me what is mean by an associative array?
Explain about switch statement in PHP?
How long is session timeout?
What does $_env means?
How do I make a reset button in html?
Explain me what is the difference between explode() and split() functions?
How to find a substring from a given string in php?
What is phpsessid?
Why php is also called as scripting language?