PHP is_integer() Function

PHP is_integer() Function


Definition and Usage

The function is_integer() checks whether the type of a variable is integer. This function is an alias of is_int().

Syntax

bool is_integer ( mixed $value )

Parameters

Sr.No Parameter & Description
1

value

The variable whose type is being evaluated.

Return Values

This function returns true if value is an intfalse otherwise.