Get your own PHP server Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The == Operator</h1>
<p>Compare two variables to check if they have the same value.</p>
<?php
$x = 100;  
$y = 100;
if ($x == $y) {
  echo "$x is equal to $y";
}
?>  
</body>
</html>

The == Operator

Compare two variables to check if they have the same value.

100 is equal to 100