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