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

Join The Discussion