<?php $mail = "Test@test.com"; preg_match("/(.)(.*?)@(.*)/", $mail, $Match); $str = $Match[1] . str_pad("", strlen($Match[2]), "*"). "@" . str_pad("", strlen($Match[3]), "*"); echo $str;
You have javascript disabled. You will not be able to edit any code.