Name
filter_var
Synopsis
mixed filter_var(mixedvar
[, intfilter_id
[, mixedoptions
]])
Performs the filter identified by ID
filter_id
on var
and returns the result. 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.