How to use is infinite in PHP

This article describe about is_infinite() Function in PHP.
  • 1343

is_infinite() Function

If the define value is a infinite number then is_infinite() function return true, otherwise it returns nothing.

The value is infinite if specified value is very big from defined range of PHP.

Syntax

is_infinite(x)

 

Parameter Description
x Specified value for check.

 

Example

 

<html>
<body>
<?php
echo is_infinite(3) . "<br />";
echo is_infinite(log(0)) . "<br />";
echo is_infinite(3000);
?>
</body>
</html>

 

Output


isinfinitephp.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.