ExamVeda
Login
Home
Control Structures(Loop in PHP)
?

What will be the output of the following PHP code ?
<?php
$a = 10;
if (1) 
    print "all";
else 
    print "some"
else 
    print "none";
?>

Answer & Solution
Correct Answer: Option C
Hanging else statement.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.