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";
?>A. hi
B. hello
C. error
D. no output
Answer: Option B

Join The Discussion