I'm trying to validate if my variable is a 32-bit signed integer.
I thought I could use filter_var()
and FILTER_VALIDATE_INT
but apparently PHPs definition of an int is something entirely different, 999999999999999999
passes without problem.
Looking at the PHP docs it dosn't say anything specific. So what actually does filter_var($var, FILTER_VALIDATE_INT)
validate?