|
|
PHP is_infinite() - Math Functions
|
Tutorials » Php »
|
Topic |
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".
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|