note 116207 added to function.filter-input
| From: | JohnSmith | Date: | Fri, 21 Nov 2014 16:48:51 +0000 |
| Subject: | note 116207 added to function.filter-input | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201001@lists.php.net to get a copy of this message | ||
1. The description of the options parameter is misleading. In order to pass the options (e.g.
default, min_range and max_range) you must pass an associative array with a key called
"options", which itself is an associative array containing option name => option value
pairs.
2. The return values section does not mention that if you specify the "default" option
then the function will return the specified default value instead of returning FALSE or NULL (when
filter fails or variable is absent).
----
Server IP: 72.52.91.14
Probable Submitter: 110.38.170.183
----
Manual Page -- http://php.net/manual/en/function.filter-input.php
Edit -- https://master.php.net/note/edit/116207
Del: integrated -- https://master.php.net/note/delete/116207/integrated
Del: useless -- https://master.php.net/note/delete/116207/useless
Del: bad code -- https://master.php.net/note/delete/116207/bad+code
Del: spam -- https://master.php.net/note/delete/116207/spam
Del: non-english -- https://master.php.net/note/delete/116207/non-english
Del: in docs -- https://master.php.net/note/delete/116207/in+docs
Del: other reasons-- https://master.php.net/note/delete/116207
Reject -- https://master.php.net/note/reject/116207
Search -- https://master.php.net/manage/user-notes.php