filter_input_array
filter_input_array
Gets external variables and optionally filters them
**filter_input_array** int $type $options bool $add_empty
This function is useful for retrieving many values without
repetitively calling .
filter_input
type
One of the constants.
INPUT_*
Waarschuwing: > The content of the superglobal that is being filtered is the original "raw" content provided by the , prior to any user modification to the superglobal. To filter a modified superglobal use instead.
filter_var_array
On success, an array containing the values of the requested variables.
On failure, false is returned.
Except if the failure is that the input array designated by
is not populated where null is returned
if the flag is used.
type``FILTER_NULL_ON_FAILURE
Missing entries from the input array will be populated into the returned
array if is true.
In which case, missing entries will be set to null,
unless the flag is used,
in which case it will be false.
add_empty``FILTER_NULL_ON_FAILURE
An entry of the returned array will be false if the filter fails,
unless the flag is used,
in which case it will be null.
FILTER_NULL_ON_FAILURE
Opmerking: > There is no key in array because it is inserted into the later.
REQUEST_TIME``INPUT_SERVER``$_SERVER
filter_input``filter_var``filter_var_array``FILTER_VALIDATE_*``FILTER_SANITIZE_*