51. What will be the output of the following PHP code ?
<?php
$i = "";
while ($i = 10)
{
print "hi";
}
print "hello";
?>
<?php
$i = "";
while ($i = 10)
{
print "hi";
}
print "hello";
?>
52. What will be the output of the following PHP code ?
<?php
$i = 5;
while (--$i > 0)
{
$i++; print $i; print "hello";
}
?>
<?php
$i = 5;
while (--$i > 0)
{
$i++; print $i; print "hello";
}
?>
53. What will be the output of the following PHP code ?
<?php
$i = 5;
while (--$i > 0 && ++$i)
{
print $i;
}
?>
<?php
$i = 5;
while (--$i > 0 && ++$i)
{
print $i;
}
?>
54. What will be the output of the following PHP code ?
<?php
$i = 5;
while (--$i > 0 || ++$i)
{
print $i;
}
?>
<?php
$i = 5;
while (--$i > 0 || ++$i)
{
print $i;
}
?>
55. What will be the output of the following PHP code ?
<?phpspan>
$i = 0;
while(?++$i || --$i)
{
print $i;
}
?>
<?phpspan>
$i = 0;
while(?++$i || --$i)
{
print $i;
}
?>
56. What will be the output of the following PHP code ?
<?php
$i = 0;
while (++$i && --$i)
{
print $i;
}
?>
<?php
$i = 0;
while (++$i && --$i)
{
print $i;
}
?>
57. What will be the output of the following PHP code ?
<?php
$i = 0;
while ((--$i > ++$i) - 1)
{
print $i;
}
?>
<?php
$i = 0;
while ((--$i > ++$i) - 1)
{
print $i;
}
?>
58. What will be the output of the following PHP code ?
<?php
$i = 2;
while (++$i)
{
while ($i --> 0)
print $i;
}
?>
<?php
$i = 2;
while (++$i)
{
while ($i --> 0)
print $i;
}
?>
59. What will be the output of the following PHP code ?
<?php
$i = 2;
while (++$i)
{
while (--$i > 0)
print $i;
}
?>
<?php
$i = 2;
while (++$i)
{
while (--$i > 0)
print $i;
}
?>
60. What will be the output of the following PHP code ?
<?php
$i = 0;
for ($i)
{
print $i;
}
?>
<?php
$i = 0;
for ($i)
{
print $i;
}
?>