PHP is_int() Function

PHP is_int() Function


Description

The is_int () function is used to test whether the type of the specified variable is an integer or not.

Version:

(PHP 4 and above)

Syntax:

is_int(var_name)

Parameter:

Name Description Required /
Optional
Type
var_name The variable being checked Required Mixed*

*Mixed : Mixed indicates that a parameter may accept multiple (but not necessarily all) types.