php-src/Zend/tests/xor_003.phpt
2018-10-14 19:45:12 +02:00

20 lines
178 B
PHP

--TEST--
XORing booleans
--FILE--
<?php
$t = true;
$f = false;
var_dump($t ^ $f);
var_dump($t ^ $t);
var_dump($f ^ $f);
echo "Done\n";
?>
--EXPECT--
int(1)
int(0)
int(0)
Done