this is what i already tried.
<?php
$a=4;
$b=6;
if ($a>=$b) {$x="xx";}
elseif ($b-$a=1) {$x="yy";}
elseif ($b-$a=2) {$x="zz";}
echo "$x"; ?>
so, i have written my code like this. but it give me the wrong answer. how to make the code get to this statement below? and the problem is how to make the code get to the statement below? which 1 to fix?
elseif ($b-$a=2) {$x="zz";}
echo"$x";
because when i run it on my browser it gave me
$x="yy";
instead of $x="zz";
and why so hard to makes question at this website?