|
|
PHP is_finite() - Math Functions
|
Tutorials » Php »
|
Topic |
What is is_finite Function?
|
|
Explanation |
|
The "is_finite()" function finds whether a value is a legal finite number.
Syntax:
is_finite(x)
In the above syntax "x" is the number to be checked to find whether its a legal finite number.
Example:
<?php
echo is_finite(4);
echo is_finite(4000);
?>
Result:
1
1
In the above example both the numbers are finite numbers, so it returns "true", otherwise it returns nothing.
|
|
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.
|
|
|
|