?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$a = 1;
if (echo $a)
print "True";
else
print "False";
?>
<?php
$a = 1;
if (echo $a)
print "True";
else
print "False";
?>
Answer & Solution
Correct Answer:
Option
C
echo does not return anything so if condition is empty.
Join the Discussion
Login to post a comment or share your explanation.
Login