?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$a = 10;
if (1)
print "all";
else
print "some"
else
print "none";
?>
<?php
$a = 10;
if (1)
print "all";
else
print "some"
else
print "none";
?>
Answer & Solution
Correct Answer:
Option
C
Hanging else statement.
Join the Discussion
Login to post a comment or share your explanation.
Login