Javatpoint Logo
Javatpoint Logo

PHP is_nan() Function

PHP 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:

Parameter Description Required/Optional
Value Value to check Required

Example 1

Output:

Your value is :200
By using 'is_nan()' Function your value is:

Example 2

Output:

Your value is :acos(1.01)
By using 'is_nan()' Function your value is:1

Example 3

Output:

bool(false)

Example 4

Output:

bool(false)

Example 5

Output:

bool(true)

Next TopicPHP Math





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA