php,isinteger
is_int check if variable is integer type, if it is string f.g "23" it will not work. You need to use ctype_digit()