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