Source Code:
(back to article)
<?php $var1 = true; $var2 = "hello"; echo is_bool($var1) . "\n"; // output: 1 (true) echo is_bool($var2) . "\n"; // output: (false) ?>
Result:
Report an issue