ExamVeda
Login
Home
Control Structures(Loop in PHP)
?

What will be the output of the following PHP code ?
<?php
if (!print "hi")
    if (print "hello")
print "hi";
?>

Answer & Solution
Correct Answer: Option A
Print returns true and thus the first if statement also is not executed.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.