is_finite(): to find out legal finite number or not
bool is_finite ( float $input )
Parameter | DESCRIPTION |
$input | Required : Number to check. |
The output is TRUE if $input is legal finite number on this platform, else False.
Example :
<?Php
echo is_finite(2); Output 1
echo "<br>";
echo is_finite(5/10); Output 1
echo "<br>";
echo is_finite(log(0));
?>
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
plus2net.com
|