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