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

is_finite() function in PHP

The is_finite() function checks if the value is finite. If num is a finite number, it returns true, otherwise it returns false.

Syntax

is_finite(num)

Parameter

  • num-The number to be checked.

Return

If num is a finite number, the is_finite() function returns true, otherwise it returns false.

Example

<?php
   echo is_finite(1);
?>

Output Result

1

Let's look at another example-

Example

<?php
   echo is_finite(log(0));
?>

Output Result