0

Total answer is shwoing error in php plese solve

<?php $x = 60; $z= 20; $sum = ($x+$z); $y = 80; if($sum > $y) { echo 'Equal'; } else { echo "Not equal"; } ?> plese solve this problem and give me the reason why not equal with exampel

18th Sep 2016, 7:55 AM
vinay
vinay - avatar
1 Resposta
+ 1
If you want to test for equality, use == instead of >. if($sum == $y)
18th Sep 2016, 8:50 AM
Zen
Zen - avatar