|
@@ 1603-1612 (lines=10) @@
|
| 1600 |
|
* returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails. |
| 1601 |
|
* @since 5.2.0 |
| 1602 |
|
*/ |
| 1603 |
|
public static function filter_input($type, $variable_name, $filter = FILTER_DEFAULT, $options = null) |
| 1604 |
|
{ |
| 1605 |
|
if (4 > func_num_args()) { |
| 1606 |
|
$var = filter_input($type, $variable_name, $filter); |
| 1607 |
|
} else { |
| 1608 |
|
$var = filter_input($type, $variable_name, $filter, $options); |
| 1609 |
|
} |
| 1610 |
|
|
| 1611 |
|
return self::filter($var); |
| 1612 |
|
} |
| 1613 |
|
|
| 1614 |
|
/** |
| 1615 |
|
* "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. |
|
@@ 1721-1730 (lines=10) @@
|
| 1718 |
|
* @return mixed the filtered data, or <b>FALSE</b> if the filter fails. |
| 1719 |
|
* @since 5.2.0 |
| 1720 |
|
*/ |
| 1721 |
|
public static function filter_var($variable, $filter = FILTER_DEFAULT, $options = null) |
| 1722 |
|
{ |
| 1723 |
|
if (3 > func_num_args()) { |
| 1724 |
|
$variable = filter_var($variable, $filter); |
| 1725 |
|
} else { |
| 1726 |
|
$variable = filter_var($variable, $filter, $options); |
| 1727 |
|
} |
| 1728 |
|
|
| 1729 |
|
return self::filter($variable); |
| 1730 |
|
} |
| 1731 |
|
|
| 1732 |
|
/** |
| 1733 |
|
* "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. |