?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
if (print "0")
print "hi" ;
else
print "how are u";
?>
<?php
if (print "0")
print "hi" ;
else
print "how are u";
?>
Answer & Solution
Correct Answer:
Option
B
Expression evaluates to true as print returns 1.
Join the Discussion
Login to post a comment or share your explanation.
Login