?
What will be the output of the following PHP code ?
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";
?>
Answer & Solution
Correct Answer:
Option
A
The value of a is evaluated to 1 as it has a value.
Join the Discussion
Login to post a comment or share your explanation.
Login