<html>
<body>
<h1>The != Operator</h1>
<p>Compare two variables and write a message if they don't have the same value.</p>
$x = 100;
$y = 50;
if ($x != $y) {
echo "$x is not equal to $y";
}
</body>
</html>
Compare two variables and write a message if they don't have the same value.
100 is not equal to 50