16.
What will be the output of the following PHP code ?
<?php
if (0.1)
    print "hi" ;
else
    print "how are u";
?>

17.
What will be the output of the following PHP code ?
<?php
if (0.0)
    print "hi" ;
else
    print "how are u";
?>

18.
What will be the output of the following PHP code ?
<?php
if (print "0")
    print "hi" ;
else
    print "how are u";
?>

19.
What will be the output of the following PHP code ?
<?php
$x = 1;
if ($x == 2)
    print "hi" ;
else if($x = 2)
    print $x;
else
    print "how are u";
?>

20.
What will be the output of the following PHP code ?
<?php
$x = 1;
if ($x = $x& 0)
    print $x ;
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.