11.
What will be the output of the following PHP code ?
<?php
$a = "a";
if ($a) 
    print "all";
else 
    print "some";
?>

12.
What will be the output of the following PHP code ?
<?php
$x = 10;
$y = 20;
if ($x > $y + $y != 3)
    print "hi" ;
else
    print "how are u";
?>

13.
What will be the output of the following PHP code ?
<?php
$x = 10;
$y = 20;
if ($x > $y && 1||1)
    print "hi" ;
else
    print "how are u";
?>

14.
What will be the output of the following PHP code ?
<?php
$x = 10;
$y = 20;
if ($x > $y && 1||1)
    print "hi" ;
else
    print "how are u";
?>

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

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