public static function CleantalkFuncs::_cleantalk_obfuscate_param in Anti Spam by CleanTalk 7.4
Same name and namespace in other branches
- 7.5 src/CleantalkFuncs.php \CleantalkFuncs::_cleantalk_obfuscate_param()
Masks a value with asterisks (*) Needed by the getFieldsAny()
Return value
string
1 call to CleantalkFuncs::_cleantalk_obfuscate_param()
File
- src/
CleantalkFuncs.php, line 429
Class
- CleantalkFuncs
- Cleantalk class create request
Code
public static function _cleantalk_obfuscate_param($value = null) {
if ($value && (!is_object($value) || !is_array($value))) {
$length = strlen($value);
$value = str_repeat('*', $length);
}
return $value;
}