Name
filter_input
Synopsis
mixed filter_input(mixedvar
[, intfilter_id
[, mixedoptions
]])
Performs the filter identified by ID
filter_id
on var
in the given context and returns the result. The context is one of
INPUT_GET
, INPUT_POST
, INPUT_COOKIE
, INPUT_SERVER
, or INPUT_ENV
. If
filter_id
is not specified, the default
filter is used. The options
parameter can
either be a bitfield of flags or an associative array of options
appropriate to the filter. See Chapter 4 for more
information on using filters.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.