is_int

PHP 4, PHP 5, PHP 7, PHP 8
is_int - Find whether the type of a variable is integer
Manual
Code Examples

is_int( mixed$value ): bool

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.

Parameters

value

The variable being evaluated.

Return Values

Returns true if value is an int, false otherwise.

Related Functions

Example of is_int

Show all examples for is_int

PHP Version:


Function is_int:

Variable handling Functions

Most used PHP functions