Get your own PHP server Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The ! Operator</h1>
<p>Write a message if the condition is NOT true.</p>
<?php
$x = 100;  
if (!($x == 90)) {
    echo "Hello world!";
}
?>  
</body>
<!-- /php/phptryit.asp?filename=tryphp_oper_not Thu, 06 Feb 2025 18:16:05 GMT -->
</html>

The ! Operator

Write a message if the condition is NOT true.

Hello world!