26.
What will be the output of the following PHP code ?
<?php
$x = 1;
if ($x--)
    print "hi"
    $x--;
else
    print "hello"
?>

27.
What will be the output of the following PHP code ?
<?php
$a = 10;
$b = 11;
if ($a < ++$a || $b < ++$b)
    print "hello";
else
    print "hi";
?>

28.
What will be the output of the following PHP code ?
<?php
$a = 2;
if ($a-- - --$a - $a)
    print "hello";
else
    print "hi";
?>

29.
What will be the output of the following PHP code ?
<?php
$a = 2;
if ($a-- - --$a - $a)
    print "hello";
else
    print "hi";
?>

30.
What will be the output of the following PHP code ?
<?php
$a = "hello";
if ($a.length)
    print $a.length;
else
    print "hi";
?>

Read More Section(Control Structures(Loop in PHP))

Each Section contains maximum 70 questions. To get more questions visit other sections.