PHP is_nan() Function Example

PHP is_nan() Function Example


Posted in : PHP Posted on : January 31, 2011 at 5:47 PM Comments : [ 0 ]

The is_nan() function is used to check the passed parameter is number or not.

PHP is_nan() Function Example:

The is_nan() function is used to check the passed parameter is number or not. If it return true then the passed argument is number other wise it return nothing.

Syntax:

is_nan(x)

where x is required parameter for check.

Example:

<?php
echo $return = is_nan(50) . "<br />";
echo $return = is_nan(-50). "<br />";
echo $return = is_nan(cos(5.10)). "<br />";
echo $return = is_nan(acos(5.10));
?>

After running this example the output is:

Output:




1

Download Example Code

Go to Topic «PreviousHomeNext»

Your Comment:


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

 
Tutorial Topics