ExamVeda
Login
Home
Control Structures(Loop in PHP)
?

What will be the output of the following PHP code ?
<?php
$a = 1;
if (print $a)
    print "True";
else
    print "False"; 
?>

Answer & Solution
Correct Answer: Option A
print returns 1 if it prints anything.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.