External Data

To filter external variables passed to the script, use:
filter_input($type, $s[,$filter[,$options]])
filter_input_array($type, $definition)
filter_has_var($type, $s)

$type can be INPUT_GET, INPUT_POST, INPUT_COOKIE, INPUT_SERVER or INPUT_ENV.
filter_input() is similar to filter_var() except that the name of the external variable is passed as a string. filter_input_array is similar to filter_var_array() except that the type of the external variables is passed. filter_has_var() checks if the variable of a specified type exists.