Get your own PHP server Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<?php
$a = 1;
echo "a is " . is_bool($a) . "<br>";
$b = 0;
echo "b is " . is_bool($b) . "<br>";
$c = true;
echo "c is " . is_bool($c) . "<br>";
$d = false;
echo "d is " . is_bool($d) . "<br>";
?>
</body>
</html>
a is
b is
c is 1
d is 1