Home > PHP > Function > Filter > filter_input()

filter_input()

filter_input - Gets a specific external variable by name and optionally filters it

Syntax

mixed filter_input ()

Arguments

-

Description

Version

PHP 5.2.0

Return value

Value of the requested variable on success, FALSE if the filter fails, or NULL if the variable_name variable is not set. If the flag FILTER_NULL_ON_FAILURE is used, it returns FALSE if the variable is not set and NULL if the filter fails.