Ver originalpublic function hiddenMail($email) { $mail_segments = explode("@", $email); $mail_segments[0] = substr($email,0,3).str_repeat("*", strlen($mail_segments[0])); return implode("@", $mail_segments); }