|
@@ 1026-1035 (lines=10) @@
|
| 1023 |
|
* returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails. |
| 1024 |
|
* @since 5.2.0 |
| 1025 |
|
*/ |
| 1026 |
|
public static function filter_input(int $type, string $variable_name, int $filter = FILTER_DEFAULT, $options = null) |
| 1027 |
|
{ |
| 1028 |
|
if (4 > \func_num_args()) { |
| 1029 |
|
$var = \filter_input($type, $variable_name, $filter); |
| 1030 |
|
} else { |
| 1031 |
|
$var = \filter_input($type, $variable_name, $filter, $options); |
| 1032 |
|
} |
| 1033 |
|
|
| 1034 |
|
return self::filter($var); |
| 1035 |
|
} |
| 1036 |
|
|
| 1037 |
|
/** |
| 1038 |
|
* "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. |
|
@@ 1144-1153 (lines=10) @@
|
| 1141 |
|
* @return mixed the filtered data, or <b>FALSE</b> if the filter fails. |
| 1142 |
|
* @since 5.2.0 |
| 1143 |
|
*/ |
| 1144 |
|
public static function filter_var($variable, int $filter = FILTER_DEFAULT, $options = null) |
| 1145 |
|
{ |
| 1146 |
|
if (3 > \func_num_args()) { |
| 1147 |
|
$variable = \filter_var($variable, $filter); |
| 1148 |
|
} else { |
| 1149 |
|
$variable = \filter_var($variable, $filter, $options); |
| 1150 |
|
} |
| 1151 |
|
|
| 1152 |
|
return self::filter($variable); |
| 1153 |
|
} |
| 1154 |
|
|
| 1155 |
|
/** |
| 1156 |
|
* "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. |