php-src/Zend/tests/xor_003.phpt

20 lines
180 B
Plaintext
Raw Normal View History

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