English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

is_nan() function in PHP

The is_nan() function checks for 'non-numeric' values. If num is not a number, it returns TRUE, otherwise it returns FALSE.

Syntax

is_nan(num)

Parameter

  • num-Value to check

Return

If num is not a number, the is_nan() function returns TRUE, otherwise it returns FALSE.

Example

<?php
   echo is_nan(10)
?>

Let's see another example-

Example

<?php
   echo is_nan(acos(1));
?>