PHP is_finite() function
Complete PHP Math Reference
Definition and Usage
The is_finite() function returns true if the specified value is a finite number, otherwise
it returns nothing.
The value is finite if it is within the allowed range for a PHP float on this
platform.
Syntax
Parameter |
Description |
x |
Required. The value to check |
Example
<?php
echo is_finite(2) . "<br />";
echo is_finite(log(0)) . "<br />";
echo is_finite(2000);
?>
|
The output of the code above will be:
Complete PHP Math Reference
Learn XML with <oXygen/> XML Editor - Free Trial!
|
|
oXygen helps you learn to define,
edit, validate and transform XML documents. Supported technologies include XML Schema,
DTD, Relax NG, XSLT, XPath, XQuery, CSS.
Understand in no time how XSLT and XQuery work by using the intuitive oXygen debugger!
Do you have any XML related questions? Get free answers from the oXygen
XML forum
and from the video
demonstrations.
Download a FREE 30-day trial today!
|
|