The filter_var_array() function gets multiple variables and optionally filters them.This function is useful for filtering many values without calling filter_var() over and over.filter_var_array — Gets multiple variables and optionally filters them.
mixed filter_var_array ( array $data [, mixed $definition [, bool $add_empty = TRUE ]] )
This function is useful for retrieving many values without repetitively calling filter_var().
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.