?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$x;
if ($x == 0)
print "hi" ;
else
print "how are u";
print "hello"
?>
<?php
$x;
if ($x == 0)
print "hi" ;
else
print "how are u";
print "hello"
?>
Answer & Solution
Correct Answer:
Option
B
else condition without brackets performs the following statements only.
Join the Discussion
Login to post a comment or share your explanation.
Login