How to use is nan in PHP

This article describe about is_nan() function in PHP.
  • 1370

is_nan() function

If define value is "not a number" then is_nan() function return true otherwise it returns nothing.

Syntax

is_nan(x)

 

Parameter Description
x Specified value for check.

 

Example

 

<html>
<body>
<?php
echo is_nan(200) . "<br />";
echo is_nan(acos(1.01));
?>
</body>
</html>

 

Output


isnanphp.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.