Skip to content

Instantly share code, notes, and snippets.

@maraisr
Created September 13, 2016 11:31
Show Gist options
  • Save maraisr/8f78e464501ee60c010bd0c30eebb934 to your computer and use it in GitHub Desktop.
Save maraisr/8f78e464501ee60c010bd0c30eebb934 to your computer and use it in GitHub Desktop.
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