> (greater than)
< (less than)
== (equal to)
!= (not equal to)
<= (Less Than or Equal To)
>= (Greater Than or Equal To)
Here is an example of how to use an operator to make a decision in combination with the if () function.
<?php
if ($x > $y)
{
echo "x is greater than y";
}
elseif ($x == $y)
{
echo "x is equal to y";
}
else
{
echo "x is smaller than y";
}
?>

