note 119697 added to filter.filters.sanitize
| From: | AntonioPrimera | Date: | Thu, 04 Aug 2016 13:12:55 +0000 |
| Subject: | note 119697 added to filter.filters.sanitize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206212@lists.php.net to get a copy of this message | ||
Please be aware that when using filter_var() with FILTER_SANITIZE_NUMBER_FLOAT and
FILTER_SANITIZE_NUMBER_INT the result will be a string, even if the input value is actually a float
or an int.
Use FILTER_VALIDATE_FLOAT and FILTER_VALIDATE_INT, which will convert the result to the expected
type.
----
Server IP: 72.52.91.14
Probable Submitter: 188.27.103.247
----
Manual Page -- http://php.net/manual/en/filter.filters.sanitize.php
Edit -- https://master.php.net/note/edit/119697
Del: integrated -- https://master.php.net/note/delete/119697/integrated
Del: useless -- https://master.php.net/note/delete/119697/useless
Del: bad code -- https://master.php.net/note/delete/119697/bad+code
Del: spam -- https://master.php.net/note/delete/119697/spam
Del: non-english -- https://master.php.net/note/delete/119697/non-english
Del: in docs -- https://master.php.net/note/delete/119697/in+docs
Del: other reasons-- https://master.php.net/note/delete/119697
Reject -- https://master.php.net/note/reject/119697
Search -- https://master.php.net/manage/user-notes.php