PHP function is_int()
Availability in PHP 4.0
Find whether the type of a variable is integer
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$var |
mixed |
not | The variable being evaluated. |
Return values
bool
true if var is an integer, false otherwise.