?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$a = 1;
if (print $a)
print "True";
else
print "False";
?>
<?php
$a = 1;
if (print $a)
print "True";
else
print "False";
?>
Answer & Solution
Correct Answer:
Option
A
print returns 1 if it prints anything.
Join the Discussion
Login to post a comment or share your explanation.
Login