Php number functions

Php has the following number functions:


   Function      Definition
  is_int() To check whether the number is integer or not.
  is_long() To check whether the number is long integer or not.
  is_float() To check whether the number is floating point or not.
  is_double() To check whether the number is double floating point or not.
  is_finite() To check whether the number is finite number or not.
  is_infinite() To check whether the number is infinite number or not.
  is_nan() To check whether the given number is not a number or a number.
  is_int() To check whether the number is integer or not.



However, the PHP var_dump() function returns the data type and value.


Prev
Next

Comments

Popular posts from this blog

Node.js Cheat Sheet

Enhancing Supply Chain Security and Cloud-Native Development with Chainguard

Bootstrap ? What is it ?