PHP is_finite() Function Example

PHP is_finite() Function Example


Posted in : PHP Posted on : January 31, 2011 at 5:32 PM Comments : [ 0 ]

The is_finite() function is use to check the passed value of this function is finite or not.

PHP is_finite() Function Example:

The is_finite() function is use to check the passed value of this function is finite or not. If the passed value is finite then is_finite() function true otherwise nothing return by this function.

Syntax:

is_finite(x)

where x is required parameter for check.

Example:

<?php
echo $return = is_finite(50) . "<br />";
echo $return = is_finite(-50). "<br />";
echo $return = is_finite(log(0)). "<br />";
echo $return = is_finite(-0.50);
?> 

Output:

1
1

1 

Download Example Code

Go to Topic «PreviousHomeNext»

Your Comment:


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

 
Tutorial Topics