Forum und email
is_int

is_int

(PHP 3, PHP 4, PHP 5)

is_int -- Find whether a variable is an integer

Popis

bool is_int ( mixed var )

Finds whether the given variable is an integer.

Poznámka: 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().

Seznam parametrů

var

The variable being evaluated.

Návratové hodnoty

Returns TRUE if var is an integer, FALSE otherwise.