Jump to content

Add a warning about a problem with validating with PHP FILTER_VALIDATE_FLOAT.


Lexib0y

Recommended Posts

Hello All,

 

On the page about the PHP filter 'FILTER_VALIDATE_INT' there is a warming about a problem with this filter. (The filter does not validate 0 (zero) as an integer.)

 

I found that the same kind of problem occurs with FLOAT.
I think it would be good to add this warning to the page of the 'FILTER_VALIDATE_FLOAT' as well.

 

 

URL's of the pages:

 

http://www.w3schools.com/php/filter_validate_int.asp

http://www.w3schools.com/php/filter_validate_float.asp

 

Kind regards,

Alex

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...