|
@@ 1533-1542 (lines=10) @@
|
| 1530 |
|
* returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails. |
| 1531 |
|
* @since 5.2.0 |
| 1532 |
|
*/ |
| 1533 |
|
public static function filter_input($type, $variable_name, $filter = FILTER_DEFAULT, $options = null) |
| 1534 |
|
{ |
| 1535 |
|
if (4 > func_num_args()) { |
| 1536 |
|
$var = filter_input($type, $variable_name, $filter); |
| 1537 |
|
} else { |
| 1538 |
|
$var = filter_input($type, $variable_name, $filter, $options); |
| 1539 |
|
} |
| 1540 |
|
|
| 1541 |
|
return self::filter($var); |
| 1542 |
|
} |
| 1543 |
|
|
| 1544 |
|
/** |
| 1545 |
|
* "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. |
|
@@ 1651-1660 (lines=10) @@
|
| 1648 |
|
* @return mixed the filtered data, or <b>FALSE</b> if the filter fails. |
| 1649 |
|
* @since 5.2.0 |
| 1650 |
|
*/ |
| 1651 |
|
public static function filter_var($variable, $filter = FILTER_DEFAULT, $options = null) |
| 1652 |
|
{ |
| 1653 |
|
if (3 > func_num_args()) { |
| 1654 |
|
$variable = filter_var($variable, $filter); |
| 1655 |
|
} else { |
| 1656 |
|
$variable = filter_var($variable, $filter, $options); |
| 1657 |
|
} |
| 1658 |
|
|
| 1659 |
|
return self::filter($variable); |
| 1660 |
|
} |
| 1661 |
|
|
| 1662 |
|
/** |
| 1663 |
|
* "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. |