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 |
Explain me what are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
Why do we use polymorphism in php?
How to call php function in jquery?
Is polymorphism inherited?
What are escaping characters?
Applications written to provide a GUI shell for Unix and Linux are called
Is php fully object oriented?
What is $_ get in php?
How do you connet mysql database with php?
Why print_r is used in php?
Does php support function overloading?
What is $_ post in php?