61. What will be the output of the following PHP code ?
<?php
for ($x = 0; $x <= 10; print ++$x)
{
print ++$x;
}
?>
<?php
for ($x = 0; $x <= 10; print ++$x)
{
print ++$x;
}
?>
62. What will be the output of the following PHP code ?
<?php
for ($x =1; $x < 10;++$x)
{
print "*t";
}
?>
<?php
for ($x =1; $x < 10;++$x)
{
print "*t";
}
?>
63. What will be the output of the following PHP code ?
<?php
for ($x = -1; $x < 10;--$x)
{
print $x;
}
?>
<?php
for ($x = -1; $x < 10;--$x)
{
print $x;
}
?>
64. What will be the output of the following PHP code ?
<?php
$x;
for ($x = -3; $x < -5; ++$x)
{
print ++$x;
}
?>
<?php
$x;
for ($x = -3; $x < -5; ++$x)
{
print ++$x;
}
?>
65. What will be the output of the following PHP code ?
<?php
for ($i++; $i == 1; $i = 2)
print "In for loop ";
print "After loopn";
?>
<?php
for ($i++; $i == 1; $i = 2)
print "In for loop ";
print "After loopn";
?>
66. What will be the output of the following PHP code ?
<?php
for (1; $i == 1; $i = 2)
print "In for loop ";
print "After loopn";
?>
<?php
for (1; $i == 1; $i = 2)
print "In for loop ";
print "After loopn";
?>
67. What will be the output of the following PHP code ?
<<php
for ($i == 2; ++$i == $i; ++$i)
print "In for loop ";
print "After loopn";
?>
<<php
for ($i == 2; ++$i == $i; ++$i)
print "In for loop ";
print "After loopn";
?>
68. What will be the output of the following PHP code ?
<?php
for ($x = 1; $x < 10; $x++)
for ($y = 1; $y < 5; $y++)
print "Hello";
?>
<?php
for ($x = 1; $x < 10; $x++)
for ($y = 1; $y < 5; $y++)
print "Hello";
?>
69. What will be the output of the following PHP code ?
<?php
for ($count = 1; $count != 20;$count++)
{
print $count;
$count++;
}
?>
<?php
for ($count = 1; $count != 20;$count++)
{
print $count;
$count++;
}
?>
70. What will be the output of the following PHP code ?
<?php
for ($count = 1; $count < 20; $count++);
print $count;
?>
<?php
for ($count = 1; $count < 20; $count++);
print $count;
?>