note 89335 modified in function.filter-input by danbrown
| From: | danbrown@php.net | Date: | Tue, 03 Mar 2009 21:49:52 +0000 |
| Subject: | note 89335 modified in function.filter-input by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-151422@lists.php.net to get a copy of this message | ||
Just a tip.
Note how to setup default filter for filter_var_array
When I tried to use filter_var_array and didn't mentioned all array indexes in definition it
filtered it with some filter and broke values so using this tip corrected everything
<?php
$def = array_map(create_function('', 'return
array("filter"=>FILTER_UNSAFE_RAW);'), $input);
?>
--was--
Just a tip.
Note how to setup default filter for filter_var_array
When I tried to use filter_var_array and didn't mentioned all array indexes in definition it
filtered it with some filter and broke values so using this tip corrected everything
$def = array_map(create_function('', 'return
array("filter"=>FILTER_UNSAFE_RAW);'), $input);
http://php.net/manual/en/function.filter-input.php