Get your own PHP server Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The < Operator</h1>
<p>Compare two variables and write a message if $y is less than $x.</p>
<?php
$x = 100;  
$y = 50;
if ($y < $x) {
  echo "$y is less than $x";
}
?>  
</body>
</html>

The < Operator

Compare two variables and write a message if $y is less than $x.

50 is less than 100