What's the whole script that you are using? The reason I ask, is to me, this works fine.
Make sure $a has been assigned a value.
I used:
and everything worked fine, I got the original output.PHP Code:
$a = 101;
if (($a > 100) && ($a <2000)) {
echo "Number is greater than 100 but less than 2000 ($a)";
} else {
echo "The value of \$a is $a";
}
What do you get if you use an else like I did above with a different set of output?