Name
filter_input_array
Synopsis
mixed filter_input_array(arrayvariables[, mixedfilters])
Performs a series of filters against variables in the
associative array variables and returns the
results as an associative array. The context is one of INPUT_GET, INPUT_POST, INPUT_COOKIE, INPUT_SERVER, or INPUT_ENV.
The optional parameter is an associative array where each element’s key is a variable name, with the associated value defining the filter and options to use to filter that variable’s value. The definition is either the ID of the filter to use or an array containing one or more of the following elements:
| The ID of the filter to apply. |
| A bitfield of flags. |
| An associative array of options specific to the filter. |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access