<?php $email = "example@gmail.com"; $maskedEmail=preg_replace('/(?<!^).(?=[^@]+@)/', '*', $email); echo $maskedEmail;
You have javascript disabled. You will not be able to edit any code.