is_int

 bool is_int ( mixed $var ) 

説明

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().

戻り値

Returns TRUE if var is an integer, FALSE otherwise.