Run »
$y); // returns -1 because $x is less than $y echo "
"; $x = 10; $y = 10; echo ($x <=> $y); // returns 0 because values are equal echo "
"; $x = 15; $y = 10; echo ($x <=> $y); // returns +1 because $x is greater than $y ?>
-1
0
1