PHP is_infinite() - Math Functions

What is is_infinite Function?

Explanation

The "is_infinite()" function finds whether a value is infinite.

Syntax:


is_infinite(x)

In the above syntax "x" is the number to be checked whether its infinite.

Example :


<?php
echo is_infinite(4) . "<br />";
echo is_infinite(log(0)) . "<br />";
?>
Result :

1

In the above example the number "4" is a finite number, so it returns nothing,and for "log(0)" the function returns "1".

PHP Topics


Ask Questions

Ask Question