71. What will be the output of the following PHP code ?
<?php
for ($count = 0; $count < 3;$count++);
{
print "hi";continue;print "hello";
}
?>
<?php
for ($count = 0; $count < 3;$count++);
{
print "hi";continue;print "hello";
}
?>
72. What will be the output of the following PHP code ?
<?php
for ($count = 0; $count<3;$count++);
{
print "hi";break;print "hello";
}
?>
<?php
for ($count = 0; $count<3;$count++);
{
print "hi";break;print "hello";
}
?>
73. What will be the output of the following PHP code ?
<?php
for(++$i; ++$i; ++$i)
{
print $i;
if ($i == 4)
break;
}
?>
<?php
for(++$i; ++$i; ++$i)
{
print $i;
if ($i == 4)
break;
}
?>
74. What will be the output of the following PHP code ?
<?php
for ($i = 0;$i = -1;$i = 1)
{
print $i;
if ($i != 1)
break;
}
?>
<?php
for ($i = 0;$i = -1;$i = 1)
{
print $i;
if ($i != 1)
break;
}
?>
75. What will be the output of the following PHP code ?
<?php
for(;;)
{
print "10";
}
?>
<?php
for(;;)
{
print "10";
}
?>
76. What will be the output of the following PHP code ?
<?php
for ($i = 0; -5 ; $i++)
{
print"i";
if ($i == 3)
break;
}
?>
<?php
for ($i = 0; -5 ; $i++)
{
print"i";
if ($i == 3)
break;
}
?>
77. What will be the output of the following PHP code ?
<?php
for ($i = 0; 0; $i++)
{
print"i";
}
?>
<?php
for ($i = 0; 0; $i++)
{
print"i";
}
?>
78. What will be the output of the following PHP code ?
<php
for ($i = 0; $i < 5; $i++)
{
for ($j = $i; $j > 0; $i--)
print $i;
}
?>
<php
for ($i = 0; $i < 5; $i++)
{
for ($j = $i; $j > 0; $i--)
print $i;
}
?>
79. What will be the output of the following PHP code ?
<?php
for ($i = 0; $i < 5; $i++)
{
for ($j = $i;$j > $i; $i--)
print $i;
}
?>
<?php
for ($i = 0; $i < 5; $i++)
{
for ($j = $i;$j > $i; $i--)
print $i;
}
?>
80. What will be the output of the following PHP code ?
<?php
$user = array("Ashley", "Bale", "Shrek", "Blank");
for ($x = 0; $x < count($user); $x++)
{
if ($user[$x] == "Shrek")
continue;
printf ($user[$x]);
}
?>
<?php
$user = array("Ashley", "Bale", "Shrek", "Blank");
for ($x = 0; $x < count($user); $x++)
{
if ($user[$x] == "Shrek")
continue;
printf ($user[$x]);
}
?>