note 80170 added to function.filter-input
| From: | MarquesJohansson at osu1 dot php dot net | Date: | Wed, 02 Jan 2008 19:30:04 +0000 |
| Subject: | note 80170 added to function.filter-input | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-134663@lists.php.net to get a copy of this message | ||
Despite the documentation for 'type', you can specify multiple types by doing:
$test = filter_input(INPUT_GET | INPUT_POST, 'test');
This was tested in 5.2.3.
When both are set it appears to return the value defined first by variables_order (php.ini).
This trick does not seem to work in filter_input_array though. Neither function supports
INPUT_REQUEST at the moment.
----
Server IP: 64.71.164.2
Probable Submitter: 208.236.9.10
----
Manual Page -- http://www.php.net/manual/en/function.filter-input.php
Edit -- https://master.php.net/note/edit/80170
Del: integrated -- https://master.php.net/note/delete/80170/integrated
Del: useless -- https://master.php.net/note/delete/80170/useless
Del: bad code -- https://master.php.net/note/delete/80170/bad+code
Del: spam -- https://master.php.net/note/delete/80170/spam
Del: non-english -- https://master.php.net/note/delete/80170/non-english
Del: in docs -- https://master.php.net/note/delete/80170/in+docs
Del: other reasons-- https://master.php.net/note/delete/80170
Reject -- https://master.php.net/note/reject/80170
Search -- https://master.php.net/manage/user-notes.php