php-src/Zend/tests/xor_003.phpt

20 lines
180 B
Plaintext
Raw Normal View History

2007-04-28 19:59:08 +08:00
--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