|
@@ 1034-1043 (lines=10) @@
|
| 1031 |
|
* returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails. |
| 1032 |
|
* @since 5.2.0 |
| 1033 |
|
*/ |
| 1034 |
|
public static function filter_input($type, $variable_name, $filter = FILTER_DEFAULT, $options = null) |
| 1035 |
|
{ |
| 1036 |
|
if (4 > func_num_args()) { |
| 1037 |
|
$var = filter_input($type, $variable_name, $filter); |
| 1038 |
|
} else { |
| 1039 |
|
$var = filter_input($type, $variable_name, $filter, $options); |
| 1040 |
|
} |
| 1041 |
|
|
| 1042 |
|
return self::filter($var); |
| 1043 |
|
} |
| 1044 |
|
|
| 1045 |
|
/** |
| 1046 |
|
* "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. |
|
@@ 1152-1161 (lines=10) @@
|
| 1149 |
|
* @return mixed the filtered data, or <b>FALSE</b> if the filter fails. |
| 1150 |
|
* @since 5.2.0 |
| 1151 |
|
*/ |
| 1152 |
|
public static function filter_var($variable, $filter = FILTER_DEFAULT, $options = null) |
| 1153 |
|
{ |
| 1154 |
|
if (3 > func_num_args()) { |
| 1155 |
|
$variable = filter_var($variable, $filter); |
| 1156 |
|
} else { |
| 1157 |
|
$variable = filter_var($variable, $filter, $options); |
| 1158 |
|
} |
| 1159 |
|
|
| 1160 |
|
return self::filter($variable); |
| 1161 |
|
} |
| 1162 |
|
|
| 1163 |
|
/** |
| 1164 |
|
* "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. |