?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$a = "";
if ($a)
print "all";
if
else
print "some";
?>
<?php
$a = "";
if ($a)
print "all";
if
else
print "some";
?>
Answer & Solution
Correct Answer:
Option
B
Empty string is evaluated to 0.
Join the Discussion
Login to post a comment or share your explanation.
Login