21. What will be the output of the following PHP code ?
<?php
$x = 1;
if ($x = $x& 0)
print $x ;
else
print "how are u";
?>
<?php
$x = 1;
if ($x = $x& 0)
print $x ;
else
print "how are u";
?>
22. What will be the output of the following PHP code ?
<?php
$x = 1;
if ($x = $x& 0)
print $x;
else
break;
?>
<?php
$x = 1;
if ($x = $x& 0)
print $x;
else
break;
?>
23. What will be the output of the following PHP code ?
<?php
$x = 10;
$y = 5;
$z = 3;
if ($x / $y / $z)
print "hi";
else
print "hello";
?>
<?php
$x = 10;
$y = 5;
$z = 3;
if ($x / $y / $z)
print "hi";
else
print "hello";
?>
24. What will be the output of the following PHP code ?
<?php
if (!print "hi")
if (print "hello")
print "hi";
?>
<?php
if (!print "hi")
if (print "hello")
print "hi";
?>
25. What will be the output of the following PHP code ?
<?php
if (print "hi" - 1)
print "hello"
?>
<?php
if (print "hi" - 1)
print "hello"
?>
26. What will be the output of the following PHP code ?
<?php
$x = 1;
if ($x--)
print "hi"
$x--;
else
print "hello"
?>
<?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";
?>
<?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";
?>
<?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";
?>
<?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";
?>
<?php
$a = "hello";
if ($a.length)
print $a.length;
else
print "hi";
?>