Jump to content

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


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...