?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
if (!print "hi")
if (print "hello")
print "hi";
?>
<?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.
Join the Discussion
Login to post a comment or share your explanation.
Login