Logical operator: xor


SUBMITTED BY: henry1874w

DATE: June 12, 2017, 3:48 p.m.

FORMAT: Text only

SIZE: 151 Bytes

HITS: 361

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <?php
  5. $x = 100;
  6. $y = 50;
  7. if ($x == 100 xor $y == 80) {
  8. echo "Hello world!";
  9. }
  10. ?>
  11. </body>
  12. </html>

comments powered by Disqus