Greate and equal : Logical Operators « Operator « PHP
- PHP
- Operator
- Logical Operators
Greate and equal
<?
$a = 21;
$b = 15;
echo "<P>Original value of \$a is $a and \$b is $b</P>";
if ($a >= $b) {
echo "<P>TEST\$a is greater than or equal to \$b</P>";
} else {
echo "<P>TEST\$a is not greater than or equal to \$b</P>";
}
?>
Related examples in the same category