?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$b = 1; $c = 4; $a = 5;
$d = $b + $c == $a;
print $d;
?>
<?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.
Join the Discussion
Login to post a comment or share your explanation.
Login