How to use is finite in PHP

This article describe about is_finite() Function in PHP.
  • 1308

is_finite() Function

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

If specified value is within the allowed range for a PHP then value is finite.

Syntax

is_finite(x)

 

Parameter Description
x Specified value for check.

Example

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

 

Output


isfinitephp.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.