filter_var_array
(no version information, might be only in CVS)
filter_var_array -- Gets multiple variables and optionally filters themOpis
mixed filter_var_array ( array data [, mixed definition] )This function is useful for retrieving many values without repetitively calling filter_var().
Parametry
data
An array with string keys containing the data to filter.
definition
An array defining the arguments. A valid key is a string containing a variable name and a valid value is either a filter type, or an array optionally specifying the filter, flags and options. If the value is an array, valid keys are filter which specifies the filter type, flags which specifies any flags that apply to the filter, and options which specifies any options that apply to the filter. See the example below for a better understanding.
This parameter can be also an integer holding a filter constant. Then all values in the input array are filtered by this filter.
Zwracane wartości
An array containing the values of the requested variables on success, or FALSE on failure. An array value will be FALSE if the filter fails, or NULL if the variable is not set.
Przykłady