PHP is_infinite() FunctionThe is_infinite() is important PHP mathematical function, which is used to check whether a value is infinite or not. It will returns true value when infinite number, otherwise it returns false /nothing. Syntax:
Example 1Output: bool(false) Example 2Output: bool(true) Example 3Output: bool(false) Example 4Output: Your value is 2 By using 'is_infinite()' Function your value is: Example 5Output: Your value is 2000 By using 'is_infinite()' Function your value is: Note: It will returns true value when infinite number, otherwise it returns false /nothing.Example 6Output: Your value is : log(0) By using 'is_infinite()' Function your value is:1
Next TopicPHP Math
|