|
@@ 1587-1596 (lines=10) @@
|
| 1584 |
|
* returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails. |
| 1585 |
|
* @since 5.2.0 |
| 1586 |
|
*/ |
| 1587 |
|
public static function filter_input($type, $variable_name, $filter = FILTER_DEFAULT, $options = null) |
| 1588 |
|
{ |
| 1589 |
|
if (4 > func_num_args()) { |
| 1590 |
|
$var = filter_input($type, $variable_name, $filter); |
| 1591 |
|
} else { |
| 1592 |
|
$var = filter_input($type, $variable_name, $filter, $options); |
| 1593 |
|
} |
| 1594 |
|
|
| 1595 |
|
return self::filter($var); |
| 1596 |
|
} |
| 1597 |
|
|
| 1598 |
|
/** |
| 1599 |
|
* "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. |
|
@@ 1705-1714 (lines=10) @@
|
| 1702 |
|
* @return mixed the filtered data, or <b>FALSE</b> if the filter fails. |
| 1703 |
|
* @since 5.2.0 |
| 1704 |
|
*/ |
| 1705 |
|
public static function filter_var($variable, $filter = FILTER_DEFAULT, $options = null) |
| 1706 |
|
{ |
| 1707 |
|
if (3 > func_num_args()) { |
| 1708 |
|
$variable = filter_var($variable, $filter); |
| 1709 |
|
} else { |
| 1710 |
|
$variable = filter_var($variable, $filter, $options); |
| 1711 |
|
} |
| 1712 |
|
|
| 1713 |
|
return self::filter($variable); |
| 1714 |
|
} |
| 1715 |
|
|
| 1716 |
|
/** |
| 1717 |
|
* "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. |