PHP is_integer() Function

PHP Variable Handling Reference : Check whether a variable is of type integer or not

Definition and Usage

The is_integer() function checks whether a variable is of type integer or not.

This function is an alias of is_int().

Syntax

is_integer(variable);

Parameter Values

Parameter Description
variable Required. Specifies the variable to check

Technical Details

Return Value: TRUE if variable is an integer, FALSE otherwise
Return Type: Boolean
PHP Version: 4.0+

❮ PHP Variable Handling Reference