public function blur_number($string)
{
if (SimpleValidator::email($string)) {
$head = substr($string, 0, 1);
$tail = substr($string, strpos($string, '@'));
return $head.'***'.$tail;
} elseif (SimpleValidator::mobile($string)) {
$head = substr($string, 0, 3);
$tail = substr($string, -4, 4);
return $head.'****'.$tail;
} elseif (SimpleValidator::bankCardId($string)) {
$tail = substr($string, -4, 4);
return '**** **** **** '.$tail;
} elseif (SimpleValidator::idcard($string)) {
$head = substr($string, 0, 4);
$tail = substr($string, -2, 2);
return $head.'************'.$tail;
}
}