English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The is_finite() function checks if the value is finite. If num is a finite number, it returns true, otherwise it returns false.
is_finite(num)
num-The number to be checked.
If num is a finite number, the is_finite() function returns true, otherwise it returns false.
<?php echo is_finite(1); ?>
Output Result
1
Let's look at another example-
<?php echo is_finite(log(0)); ?>
Output Result