Table of contents Home page
$x = 9; if (is_real($x)) { echo "\$x ($x) contains a PHP real number.\n"; // Never executed } else { echo "\$x ($x) does not contain a PHP real number.\n"; } $x = 9.0; if (is_real($x)) { echo "\$x ($x) contains a PHP real number.\n"; } else { echo "\$x ($x) does not contain a PHP real number.\n"; // Never executed }