You are here

public static function CleantalkFuncs::_cleantalk_obfuscate_param in Anti Spam by CleanTalk 7.5

Same name and namespace in other branches
  1. 7.4 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()
CleantalkFuncs::_cleantalk_get_fields_any in src/CleantalkFuncs.php

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;
}