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

The and Operator

Write a message if both conditions are true.

Hello world!