11
What will be the output of the following PHP code ?
<?php
$a = "a";
if ($a)
print "all";
else
print "some";
?> Answer & Solution
Answer: Option
A
Solution:
The value of a is evaluated to 1 as it has a value.