php-src/Zend/tests/xor_003.phpt

20 lines
178 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";
?>
2018-09-17 01:16:42 +08:00
--EXPECT--
2007-04-28 19:59:08 +08:00
int(1)
int(0)
int(0)
Done