FILTER_VALIDATE_BOOLEAN |
"boolean" |
default
|
FILTER_NULL_ON_FAILURE
|
Gibt TRUE für die Werte "1", "true", "on" und "yes" zurück.
Sonst FALSE.
If FILTER_NULL_ON_FAILURE is set, FALSE is
returned only for "0", "false", "off", "no", and "", and
NULL is returned for all non-boolean values.
|
FILTER_VALIDATE_EMAIL |
"validate_email" |
default
|
|
Prüft ob der Wert eine gültige Email Adresse ist. |
FILTER_VALIDATE_FLOAT |
"float" |
default,
decimal
|
FILTER_FLAG_ALLOW_THOUSAND
|
Prüft ob der Wert ein Float Wert ist. |
FILTER_VALIDATE_INT |
"int" |
default,
min_range,
max_range
|
FILTER_FLAG_ALLOW_OCTAL,
FILTER_FLAG_ALLOW_HEX
|
Prüft ob der Wert ein Integer Wert ist, optional ob der Wert in der definierten Spanne liegt. |
FILTER_VALIDATE_IP |
"validate_ip" |
default
|
FILTER_FLAG_IPV4,
FILTER_FLAG_IPV6,
FILTER_FLAG_NO_PRIV_RANGE,
FILTER_FLAG_NO_RES_RANGE
|
Prüft ob der Wert eine gültige IP Adresse ist.
Optional kann angegeben werden ob der Wert eine IPv4, IPv6 Adresse sein soll. Oder das die IP Adresse nicht aus einem Privaten oder Reservierten Bereich stammen soll.
|
FILTER_VALIDATE_REGEXP |
"validate_regexp" |
default,
regexp
|
|
Validates value against regexp, a
Perl-compatible regular expression.
|
FILTER_VALIDATE_URL |
"validate_url" |
default
|
FILTER_FLAG_PATH_REQUIRED,
FILTER_FLAG_QUERY_REQUIRED
|
Validates value as URL (according to » http://www.faqs.org/rfcs/rfc2396), optionally with required components. Beware a valid URL may not specify the HTTP protocol http:// so further validation may be required to determine the URL uses an expected protocol, e.g. ssh:// or mailto:. Note that the function will only find ASCII URLs to be valid; internationalized domain names (containing non-ASCII characters) will fail. |