php-src/Zend/tests/xor_003.phpt
2007-04-28 11:59:08 +00:00

20 lines
180 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";
?>
--EXPECTF--
int(1)
int(0)
int(0)
Done