?
What will be the output of the following PHP code ?
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";
?>
Answer & Solution
Correct Answer:
Option
D
x&0 is 0,thus evaluated to false.
Join the Discussion
Login to post a comment or share your explanation.
Login