PHP is_infinite() Function Example

PHP is_infinite() Function Example


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

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

PHP is_infinite() Function Example:

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

Syntax:

is_infinite(x)

where x is required parameter for check.

Example:

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

After running this example the output is:

Output:



1

Download Example Code

Go to Topic «PreviousHomeNext»

Your Comment:


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

 
Tutorial Topics