Created
November 4, 2013 22:46
-
-
Save tarciozemel/7310567 to your computer and use it in GitHub Desktop.
PHP: email encode
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 emailEncode($e) | |
{ | |
$email_len = strlen($e); | |
for ($i = 0; $i < $email_len; $i++) { | |
$output .= '&#'.ord($e[$i]).';'; | |
} | |
return $output; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment