Q.1
What will be the output of the following PHP code ?
<?php
$a = 2;
if ($a-- - --$a - $a)
    print "hello";
else
    print "hi";
?>
Q.2
What will be the output of the following PHP code ?
<?php
$a = 2;
if ($a-- - --$a - $a)
    print "hello";
else
    print "hi";
?>
Q.3
What will be the output of the following PHP code ?
<?php
if (!print "hi")
    if (print "hello")
print "hi";
?>
Q.4
What will be the output of the following PHP code ?
<?php
if (print "hi" - 1)
    print "hello"
?>
Q.5
What will be the output of the following PHP code ?
<?php
$a = "hello";
if ($a.length)
    print $a.length;
else
    print "hi";
?>
Q.6
What will be the output of the following PHP code ?
<?php
if (0.1)
    print "hi" ;
else
    print "how are u";
?>
Q.7
What will be the output of the following PHP code ?
<?php
if (0.0)
    print "hi" ;
else
    print "how are u";
?>
Q.8
What will be the output of the following PHP code ?
<?php
if (print "0")
    print "hi" ;
else
    print "how are u";
?>
Q.9
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";
?>
Q.10
What will be the output of the following PHP code ?
<?php
$x = 1;
if ($x = $x& 0)
    print $x ;
else
    print "how are u";
?>
Q.11
What will be the output of the following PHP code ?
<?php
$a = "a";
if ($a) 
    print "all";
else 
    print "some";
?>
Q.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";
?>
Q.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";
?>
Q.14
What will be the output of the following PHP code ?
<?php
$a = 1;
if (echo $a)
    print "True";
else
    print "False"; 
?>
Q.15
What will be the output of the following PHP code ?
<?php
$a = 1;
if (print $a)
    print "True";
else
    print "False"; 
?>
Q.16
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";
?>
Q.17
What will be the output of the following PHP code ?
<?php
if (-100)
    print "hi" ;
else
    print "how are u";
?>
Q.18
What will be the output of the following PHP code ?
<?php
$a = 10;
if (1) 
    print "all";
else 
    print "some"
else 
    print "none";
?>
Q.19
What will be the output of the following PHP code ?
<?php
$a = 10;
if (0) 
    print "all";
 if 
 else 
     print "some"
?>
Q.20
What will be the output of the following PHP code ?
<?php
$a = "";
if ($a) 
    print "all";
if 
else 
    print "some";
?>
0 h : 0 m : 1 s