is_infinite(): Finds whether a value is infinite or not

Check whether a float is infinite

is_infinite() checks whether a floating-point result represents positive or negative infinity.

$value = INF;
var_dump(is_infinite($value)); // bool(true)

This is the recommended starting pattern. The detailed examples below are retained and modernized for additional variations and explanation.

<?Php
echo is_infinite(2);
echo "<br>";
echo is_infinite(5/10);
echo "<br>";
echo is_infinite(log(0)); Output 1 
?>
Syntax
bool is_infinite ( float $input )
ParameterDESCRIPTION
$inputRequired : Number to check.
The output is TRUE if $input is infinite, else False.
Math Functions is_finite(): to findout legal finite number or not decbin() Binary equivalent of decimal number


Subscribe to our YouTube Channel here



plus2net.com











PHP video Tutorials
✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer