<?php
bool is_infinite ( float $num )
where,
$num = The value to check
?>
<?php
function isinfinite($val)
{
if(is_infinite($val))
{
echo 'The input value ' . $val .
' must be considered as a infinite value.<br><br>';
}
else
{
echo 'The entered value ' . $val .
' should NOT be considered as a infinite value.<br><br>';
}
}
$v01 = 3.1416;
$v02 = '18.448E+464';
isinfinite($v01);
isinfinite($v02);
?>