PHP is_nan() FunctionPHP is _nan() function is used to check whether a value is not a number. It is important mathematical function. It returns true if the value is not a number. Otherwise it returns false/nothing. Syntax:
Example 1Output: Your value is :200 By using 'is_nan()' Function your value is: Example 2Output: Your value is :acos(1.01) By using 'is_nan()' Function your value is:1 Example 3Output: bool(false) Example 4Output: bool(false) Example 5Output: bool(true)
Next TopicPHP Math
|