14
That script has some nice functions but it doesn't do a good job at sanitizing!
Depending on what you need (and want to accept) you can use:
abs() for positive numbers (note that it accepts floats also)
preg_replace('/[^a-zA-Z0-9 .-]/','',$var) for cleaning out any special characters from stri...