Source Code:
(back to article)
<?php $number = acos(1.5); // Check if the number is NaN using the is_nan() function if (is_nan($number)) { echo "The number is not a number"; } else { echo "The number is a number"; } ?>
Result:
Report an issue