ExamVeda
Login
Home
Control Structures(Loop in PHP)
?

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

Answer & Solution
Correct Answer: Option C
No else statement to end the if statement.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.