write a program to print
[123]
[456]
[789]
note : braces also need to be printed
Answer / soujj
$countr = 0;
for($i=1;$i<=9;$i++)
{
$countr++;
$str[] = $i;
if($countr % 3 == 0)
{
echo "[";
for($j=0;$j<=2;$j++)
{
echo $str[$j];
}
echo "]";
$str=array();
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Which is a perfect example of runtime polymorphism?
How do you remove whitespace from the beginning and end of a $string variable?
discuss the issue of software theft in ghana and how it has affected the economy
Tell me what's the difference between include and require?
How many types of session are there?
What is the value for this auto incremented field user_pri_id?
what is array_search() in php?
Tell me what are magic methods?
How can we submit a form without a submit button?
What is php beginner?
What is fulltextsearch
Which function parses an English textual date or time into Unix timestamp in PHP.