ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
$b = 1; $c = 4; $a = 5; 
$d = $b + $c == $a;
print $d;
?>

Answer & Solution
Correct Answer: Option D
First b and c are added and then tested if d=5,which is true thus return 1.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.