add a note add a note
User Contributed Notes 23 notes
21 Simon Neaves ?6 years ago
I've found that both that is_int and ctype_digit don't behave quite as I'd expect, so I made a simple function called isInteger which does. I hope somebody finds it useful.
? ? return(ctype_digit(strval($input)));