The filter_input_array() function gets external variables (e.g. from form input) and optionally filters them.This function is useful for retrieving/filtering many values instead of calling filter_input() many times.filter_input_array — Gets external variables and optionally filters them.
mixed filter_input_array ( int $type [, mixed $definition [, bool $add_empty = TRUE ]] )
This function is useful for retrieving many values without repetitively calling filter_input().
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. Or if the flag FILTER_NULL_ON_FAILURE is used, it returns FALSE if the variable is not set and NULL if the filter fails.