Skip to content

Instantly share code, notes, and snippets.

@tarciozemel
Created November 4, 2013 22:46
Show Gist options
  • Save tarciozemel/7310567 to your computer and use it in GitHub Desktop.
Save tarciozemel/7310567 to your computer and use it in GitHub Desktop.
PHP: email encode
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