What will be the output of the following PHP code ?
<?php
$a = "a";
if ($a)
print "all";
else
print "some";
?>
<?php
$a = "a";
if ($a)
print "all";
else
print "some";
?>A. all
B. some
C. error
D. no output
Answer: Option A

Join The Discussion