Javatpoint Logo
Javatpoint Logo

PHP is_finite() Function

The is_finite() is PHP mathematical function, which is used to find whether a value is a legal finite number.

Syntax:

It returns true (1) if the value is a finite number, otherwise it returns false/nothing.

Parameter Description Required/Optional
value Value to check Required

Example 1

Output:

Your given value is :2
By using 'is_finite()' Function :1

Example 2

Output:

Your Number is: 20000
By using 'is_finite()' function your value is:1

Example 3

Output:

bool(true)

Example 4

Output:

bool(false)

Example 5

Output:

bool(false)

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