diff --git a/reference/filter/constants.xml b/reference/filter/constants.xml index a223b4f38f..68e996045e 100644 --- a/reference/filter/constants.xml +++ b/reference/filter/constants.xml @@ -1,5 +1,5 @@ - +
&reftitle.constants; @@ -71,6 +71,17 @@ + + + INPUT_DATA + (integer) + + + + User-defined set of variables. + + + FILTER_FLAG_NONE @@ -291,6 +302,30 @@ + + + FILTER_FLAG_SCALAR + (integer) + + + + Allow scalar types (non-array) only in filter. + Currently used by input_get_args. + + + + + + FILTER_FLAG_ARRAY + (integer) + + + + Only allow array type in filter. + Currently used by input_get_args. + + + FILTER_FLAG_ALLOW_OCTAL diff --git a/reference/filter/functions/input-get-args.xml b/reference/filter/functions/input-get-args.xml new file mode 100644 index 0000000000..f6b3a1b487 --- /dev/null +++ b/reference/filter/functions/input-get-args.xml @@ -0,0 +1,182 @@ + + + + + input_get_args + Gets multiple variables from outside PHP and optionally filters them + + + &reftitle.description; + + mixedinput_get_args + arraydefinition + inttype + arraydata + + &warn.experimental.func; + + This function is useful for retrieving a large amount of values without + repetitively calling input_get. + + + + &reftitle.parameters; + + + + 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. + + + + + type + + + One of INPUT_GET, INPUT_POST, + INPUT_COOKIE, INPUT_SERVER, + INPUT_ENV, INPUT_SESSION, or + INPUT_DATA. + + + + + data + + + Data to filter. Used if the type parameter is + set to INPUT_DATA. + + + + + + + + &reftitle.returnvalues; + + An array containing the values of the requested variables on success, or + &false; if an error occurred. + + + + + &reftitle.examples; + + + A <function>input_get_args</function> example + + 'libgd