I am looking for some help with script that makes email output from variable partly hidden before the @ like I have email
verysecretemail@gmail.com
And i need in output to have “randomly” put star there like:
ver***@gmail.com
verys*********************@gmail.com
ve*@gmail.com
But not like:
ver***mail.com
verysecre****ail.com
Just random uses of stars (or maybe static) it doesnt metter but before the @ character
I tried something like this
$output = substr_replace($val, '********', 2, 7);
Where $val = $email;
1 Answer