?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
if (print "hi" - 1)
print "hello"
?>
<?php
if (print "hi" - 1)
print "hello"
?>
Answer & Solution
Correct Answer:
Option
C
print returns true and when 1 is subtracted it is syntax error.
Join the Discussion
Login to post a comment or share your explanation.
Login