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