Created
September 13, 2016 11:31
-
-
Save maraisr/8f78e464501ee60c010bd0c30eebb934 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function myobfiscate($emailaddress){ | |
$email= $emailaddress; | |
$length = strlen($email); | |
for ($i = 0; $i < $length; $i++){ | |
$obfuscatedEmail .= "&#" . ord($email[$i]).";"; | |
} | |
echo $obfuscatedEmail; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment