<?php $email = "example.gmail.com"; $new_email = preg_replace("/([_a-zA-Z0-9-]{2})([-a-z0-9]*)((.|@)[_a-zA-Z0-9-]+)/i", "$1****$3", $email); echo $new_email;
You have javascript disabled. You will not be able to edit any code.