Browsing articles tagged: Is Numeric

Permalink to PHP Tip #2: Is_Numeric() Is A Very Useful Thing

PHP Tip #2: Is_Numeric() Is A Very Useful Thing

On 03.13.2009 by Paul Robinson | 4 comments

The second in my series of PHP tips is to do with the extremely handy is_numeric(). When allowing user input it’s extremely important to check the input for attacks. The most common piece of information handed to MySQL is an ID, but novice coders can get confused with how to check the input. The main [...]