Home »
MCQs »
PHP MCQs
What will be the output of the following PHP code (16)?
64. What will be the output of the following PHP code?
<?php
echo var_dump(is_nan(10));
?>
- bool(false)
- bool(true)
- false
- true
Answer: A) bool(false)
Explanation:
The is_nan() method is used to check whether the given value is NaN or not. Thus, the output of the above statement will be "bool(false)".