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 |
Does exist in php?
How can we convert the time zones using PHP?
What is the main difference between php 4 and php 5?
Is php a programming language?
What does the function get_magic_quotes_gpc() means?
What is the advantge and disadvantage of mysql_connet() and mysql_pconnect() ? in which condition will you use mysql_connect() and mysql_pconnect().
How can I reverse sort an array keeping the correlation between the index and value?
2 Answers Rushmore Consultancy,
Explain what is the function file_get_contents() usefull for?
How many ways there are to fetch the data from the Database?
how we can crop an image and how we can display it..
What does $_files means?
Is php strongly typed?