HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP is_finite() Function

PHP Math Reference PHP Math Reference

Example

Check whether a value is finite or not:

<?php
echo is_finite(2) . "<br>";
echo is_finite(log(0)) . "<br>";
echo is_finite(2000);
?>

Run example »

Definition and Usage

The is_finite() function checks whether a value is finite or not.

This function returns true (1) if the specified value is a finite number, otherwise it returns false/nothing.

The value is finite if it is within the allowed range for a PHP float on this platform.


Syntax

is_finite(value);

Parameter Description
value Required. Specifies the value to check

Technical Details

Return Value: TRUE if value is a finite number, FALSE otherwise
Return Type: Boolean
PHP Version: 4.2+


PHP Math Reference PHP Math Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE