is_int

is_int

(PHP 4, PHP 5, PHP 7)

is_intFind whether the type of a variable is integer

Description

bool is_int ( mixed $var )

Finds whether the type of the given variable is integer.

Note:

To test if a variable is a number or a numeric string (such as form input, which is always a string), you must use is_numeric().