Get your own PHP server Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The or Operator</h1>
<p>Write a message if at least one of the conditions are true.</p>
<?php
$x = 100;  
$y = 50;
if ($x == 100 or $y == 80) {
    echo "Hello world!";
}
?>  
</body>
</html>

The or Operator

Write a message if at least one of the conditions are true.

Hello world!