@@ 1650-1659 (lines=10) @@ | ||
1647 | * returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails. |
|
1648 | * @since 5.2.0 |
|
1649 | */ |
|
1650 | public static function filter_input($type, $variable_name, $filter = FILTER_DEFAULT, $options = null) |
|
1651 | { |
|
1652 | if (4 > func_num_args()) { |
|
1653 | $var = filter_input($type, $variable_name, $filter); |
|
1654 | } else { |
|
1655 | $var = filter_input($type, $variable_name, $filter, $options); |
|
1656 | } |
|
1657 | ||
1658 | return self::filter($var); |
|
1659 | } |
|
1660 | ||
1661 | /** |
|
1662 | * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. |
|
@@ 1768-1777 (lines=10) @@ | ||
1765 | * @return mixed the filtered data, or <b>FALSE</b> if the filter fails. |
|
1766 | * @since 5.2.0 |
|
1767 | */ |
|
1768 | public static function filter_var($variable, $filter = FILTER_DEFAULT, $options = null) |
|
1769 | { |
|
1770 | if (3 > func_num_args()) { |
|
1771 | $variable = filter_var($variable, $filter); |
|
1772 | } else { |
|
1773 | $variable = filter_var($variable, $filter, $options); |
|
1774 | } |
|
1775 | ||
1776 | return self::filter($variable); |
|
1777 | } |
|
1778 | ||
1779 | /** |
|
1780 | * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. |